17#ifndef __OMNETPP_NEDXML_SOURCEDOCUMENT_H
18#define __OMNETPP_NEDXML_SOURCEDOCUMENT_H
20#include "nedxmldefs.h"
40 enum {COMMENT_LINE, BLANK_LINE, CODE_LINE};
42 char *wholeFile =
nullptr;
45 char **lineBeg =
nullptr;
50 int commentBufLen = 1024;
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();
66 YYLoc getBannerCommentPos(YYLoc pos);
67 YYLoc getTrailingCommentPos(YYLoc pos);
101 const char *
get(YYLoc pos);
const char * getFullText()
bool setData(const char *data)
const char * get(YYLoc pos)
const char * getNextInnerComment(YYLoc &pos)
const char * getFileComment()
const char * getTrailingComment(YYLoc pos)
bool readFile(const char *filename)
void trimSpaceAndComments(YYLoc &pos)
const char * getBannerComment(YYLoc pos)