OMNeT++ NEDXML 6.1
Discrete Event Simulation Library
MsgTool Class Reference

Description

Implements opp_msgtool.

Public Member Functions

int main (int argc, char **argv)
 

Protected Member Functions

std::vector< std::string > expandMsgFolder (const char *fname)
 
std::vector< std::string > expandFileArg (const char *arg)
 
bool fileLooksLikeXml (const char *filename)
 
MsgFileElement * parseMsgFile (const char *fname, bool opt_storesrc)
 
ASTNodeparseXmlFile (const char *filename)
 
FilesElement * wrapIntoFilesElement (ASTNode *tree)
 
void moveChildren (ASTNode *source, ASTNode *target)
 
void generateMsgFile (const char *filename, MsgFileElement *tree)
 
void generateMsgFiles (FilesElement *tree)
 
void generateXmlFile (const char *filename, ASTNode *tree, bool srcloc)
 
void generateDependencies (const char *depsfile, const char *msgfile, const char *hfile, const char *ccfile, const std::set< std::string > &dependencies, bool wantPhonytargets)
 
void renameFileToBak (const char *fname)
 
void helpCommand (int argc, char **argv)
 
void printHelpPage (const std::string &page)
 
void convertCommand (int argc, char **argv)
 
void prettyprintCommand (int argc, char **argv)
 
void validateCommand (int argc, char **argv)
 
void generateCppCommand (int argc, char **argv)
 

Protected Attributes

bool opt_verbose = false
 

Member Function Documentation

◆ expandMsgFolder()

std::vector<std::string> expandMsgFolder ( const char *  fname)
protected

◆ expandFileArg()

std::vector<std::string> expandFileArg ( const char *  arg)
protected

◆ fileLooksLikeXml()

bool fileLooksLikeXml ( const char *  filename)
protected

◆ parseMsgFile()

MsgFileElement* parseMsgFile ( const char *  fname,
bool  opt_storesrc 
)
protected

◆ parseXmlFile()

ASTNode* parseXmlFile ( const char *  filename)
protected

◆ wrapIntoFilesElement()

FilesElement* wrapIntoFilesElement ( ASTNode tree)
protected

◆ moveChildren()

void moveChildren ( ASTNode source,
ASTNode target 
)
protected

◆ generateMsgFile()

void generateMsgFile ( const char *  filename,
MsgFileElement *  tree 
)
protected

◆ generateMsgFiles()

void generateMsgFiles ( FilesElement *  tree)
protected

◆ generateXmlFile()

void generateXmlFile ( const char *  filename,
ASTNode tree,
bool  srcloc 
)
protected

◆ generateDependencies()

void generateDependencies ( const char *  depsfile,
const char *  msgfile,
const char *  hfile,
const char *  ccfile,
const std::set< std::string > &  dependencies,
bool  wantPhonytargets 
)
protected

◆ renameFileToBak()

void renameFileToBak ( const char *  fname)
protected

◆ helpCommand()

void helpCommand ( int  argc,
char **  argv 
)
protected

◆ printHelpPage()

void printHelpPage ( const std::string &  page)
protected

◆ convertCommand()

void convertCommand ( int  argc,
char **  argv 
)
protected

◆ prettyprintCommand()

void prettyprintCommand ( int  argc,
char **  argv 
)
protected

◆ validateCommand()

void validateCommand ( int  argc,
char **  argv 
)
protected

◆ generateCppCommand()

void generateCppCommand ( int  argc,
char **  argv 
)
protected

◆ main()

int main ( int  argc,
char **  argv 
)

Member Data Documentation

◆ opt_verbose

bool opt_verbose = false
protected

The documentation for this class was generated from the following file: