23 #ifndef BAGEL_BAGLIB_PARSE_OBJECT_H 24 #define BAGEL_BAGLIB_PARSE_OBJECT_H 26 #include "bagel/baglib/ifstream.h" 27 #include "bagel/boflib/error.h" 28 #include "bagel/boflib/rect.h" 29 #include "bagel/boflib/string.h" 33 #define RECT_START_DELIM '[' 34 #define RECT_END_DELIM ']' 35 #define RECT_VAR_DELIM ',' 37 #define SDEV_START_DELIM '{' 38 #define SDEV_END_DELIM '}' 40 #define OBJ_START_DELIM '=' 41 #define OBJ_END_DELIM ';' 43 enum ParseCodes { PARSING_DONE = 0, UPDATED_OBJECT, UNKNOWN_TOKEN };
68 static void initialize();
70 virtual ErrorCode attach() {
74 virtual ErrorCode detach() {
78 virtual bool isAttached() {
91 int getKeywordFromStream(
CBagIfstream &istr, KEYWORDS &keyword);
94 int parseAlertBox(
CBagIfstream &istr,
const char *sTitle,
const char *sFile,
int nLine);
Definition: ifstream.h:31
Definition: parse_object.h:45