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

Description

Implements opp_nedtool.

Public Member Functions

int main (int argc, char **argv)
 

Protected Member Functions

std::vector< std::string > expandNedFolder (const char *fname)
 
std::vector< std::string > expandFileArg (const char *arg)
 
bool fileLooksLikeXml (const char *filename)
 
NedFileElement * parseNedFile (const char *fname, bool opt_storesrc)
 
ASTNodeparseXmlFile (const char *filename)
 
FilesElement * wrapIntoFilesElement (ASTNode *tree)
 
void moveChildren (ASTNode *source, ASTNode *target)
 
void generateNedFile (const char *filename, NedFileElement *tree)
 
void generateNedFiles (FilesElement *tree)
 
void generateXmlFile (const char *filename, ASTNode *tree, bool srcloc)
 
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

◆ expandNedFolder()

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

◆ expandFileArg()

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

◆ fileLooksLikeXml()

bool fileLooksLikeXml ( const char *  filename)
protected

◆ parseNedFile()

NedFileElement* parseNedFile ( 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

◆ generateNedFile()

void generateNedFile ( const char *  filename,
NedFileElement *  tree 
)
protected

◆ generateNedFiles()

void generateNedFiles ( FilesElement *  tree)
protected

◆ generateXmlFile()

void generateXmlFile ( const char *  filename,
ASTNode tree,
bool  srcloc 
)
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: