OMNeT++ NEDXML  6.0.3
nedtools.h
Go to the documentation of this file.
1 //==========================================================================
2 // nedtools.h -
3 //
4 // OMNeT++/OMNEST
5 // Discrete System Simulation in C++
6 //
7 //==========================================================================
8 
9 /*--------------------------------------------------------------*
10  Copyright (C) 2002-2017 Andras Varga
11  Copyright (C) 2006-2017 OpenSim Ltd.
12 
13  This file is distributed WITHOUT ANY WARRANTY. See the file
14  `license' for details on this and other legal matters.
15 *--------------------------------------------------------------*/
16 
17 
18 #ifndef __OMNETPP_NEDXML_NEDTOOLS_H
19 #define __OMNETPP_NEDXML_NEDTOOLS_H
20 
21 #include <string>
22 #include <vector>
23 #include "nedelements.h"
24 
25 namespace omnetpp {
26 namespace nedxml {
27 
34 {
35  private:
36  static void doCollectNedFiles(std::vector<std::string>& result, const std::string& prefix);
37  static void printNedFileAsStringConstant(const char *varname, const char *filename, const char *passphrase, std::ostream& out);
38 
39  public:
44  static void repairNedAST(ASTNode *tree);
45 
50  static void repairMsgAST(ASTNode *tree);
51 
56  static void splitNedFiles(FilesElement *tree);
57 
64  static void generateCppSource(const char *cppfile, std::vector<std::string> nedfiles, const char *passphrase);
65 
66 };
67 
68 } // namespace nedxml
69 } // namespace omnetpp
70 
71 
72 #endif
73 
omnetpp::nedxml::NedTools
Misc NED utilities.
Definition: nedtools.h:33
NEDXML_API
#define NEDXML_API
Definition: nedxmldefs.h:31
omnetpp
Definition: astbuilder.h:25
omnetpp::nedxml::ASTNode
Definition: astnode.h:87