nedtools.h Source File

NEDXML API: nedtools.h Source File
NEDXML API
nedtools.h
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
25namespace omnetpp {
26namespace nedxml {
27
33class NEDXML_API NedTools
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
Definition astnode.h:88
Misc NED utilities.
Definition nedtools.h:34
static void repairMsgAST(ASTNode *tree)
static void splitNedFiles(FilesElement *tree)
static void generateCppSource(const char *cppfile, std::vector< std::string > nedfiles, const char *passphrase)
static void repairNedAST(ASTNode *tree)