23 #include <tulip/tulipconf.h>
38 class TLP_SCOPE YajlParseFacade {
42 virtual ~YajlParseFacade() {}
51 void parse(
const std::string &filename);
52 void parse(
const unsigned char *data,
int length);
54 virtual void parseNull();
55 virtual void parseBoolean(
bool boolVal);
56 virtual void parseInteger(
long long integerVal);
57 virtual void parseDouble(
double doubleVal);
58 virtual void parseNumber(
const char *numberVal,
size_t numberLen);
59 virtual void parseString(std::string &value);
60 virtual void parseMapKey(std::string &value);
61 virtual void parseStartMap();
62 virtual void parseEndMap();
63 virtual void parseStartArray();
64 virtual void parseEndArray();
66 bool parsingSucceeded()
const;
67 std::string errorMessage()
const;
68 static std::string yajlVersion();
72 bool _parsingSucceeded;
73 std::string _errorMessage;
76 class YajlWriteFacade {
81 std::string generatedString();
83 void writeInteger(
long long int number);
84 void writeDouble(
double number);
85 void writeNumber(
const char *str,
size_t len);
86 void writeString(
const std::string &text);
88 void writeBool(
bool value);
91 void writeArrayOpen();
92 void writeArrayClose();
94 void beautifyString(
bool beautify);
97 yajl_gen_t *_generator;
PluginProcess subclasses are meant to notify about the progress state of some process (typically a pl...