17 #ifndef __OMNETPP_NEDXML_SOURCEDOCUMENT_H 18 #define __OMNETPP_NEDXML_SOURCEDOCUMENT_H 40 enum {COMMENT_LINE, BLANK_LINE, CODE_LINE};
54 int getLineType(
int lineNumber);
55 int getLineType(
const char *s);
56 bool lineContainsCode(
const char *s);
57 int getLineIndent(
int lineNumber);
58 int getLineIndent(
const char *s);
59 char *getPosition(
int line,
int column);
62 int topLineOfBannerComment(
int li);
63 char *stripComment(
const char *s);
65 YYLoc getFileCommentPos();
85 bool readFile(
const char *filename);
92 bool setData(
const char *data);
106 const char *getFileComment();
111 const char *getBannerComment(
YYLoc pos);
116 const char *getTrailingComment(
YYLoc pos);
122 const char *getNextInnerComment(
YYLoc& pos);
127 YYLoc getFullTextPos();
132 const char *getFullText();
138 void trimSpaceAndComments(
YYLoc& pos);
#define NEDXML_API
Definition: nedxmldefs.h:31
Stores the full text of a NED/MSG file.
Definition: sourcedocument.h:37
Definition: astbuilder.h:25