14 #ifndef __INCLUDED_SCOPIRA_TOOL_PROPFLOW_H__ 15 #define __INCLUDED_SCOPIRA_TOOL_PROPFLOW_H__ 17 #include <scopira/tool/flow.h> 18 #include <scopira/tool/export.h> 55 virtual bool failed(
void)
const;
58 virtual size_t read(
byte_t* _buf,
size_t _maxsize);
78 static bool is_whitespace(
byte_t b);
80 byte_t non_whitespace(
void);
98 SCOPIRA_EXPORT
virtual bool failed(
void)
const;
101 SCOPIRA_EXPORT
virtual size_t read(
byte_t* _buf,
size_t _maxsize);
103 SCOPIRA_EXPORT
virtual bool read_bool(
bool&);
104 SCOPIRA_EXPORT
virtual bool read_char(
char&);
105 SCOPIRA_EXPORT
virtual bool read_short(
short&);
106 SCOPIRA_EXPORT
virtual bool read_int(
int&);
107 SCOPIRA_EXPORT
virtual bool read_size_t(
size_t&);
108 SCOPIRA_EXPORT
virtual bool read_int64_t(int64_t&);
109 SCOPIRA_EXPORT
virtual bool read_long(
long&);
110 SCOPIRA_EXPORT
virtual bool read_float(
float&);
111 SCOPIRA_EXPORT
virtual bool read_double(
double&);
112 SCOPIRA_EXPORT
virtual bool read_string(std::string&);
115 SCOPIRA_EXPORT
virtual bool read_object(
object* &out);
125 SCOPIRA_EXPORT
bool read_keyword(std::string& ret,
bool& keyword);
130 SCOPIRA_EXPORT
void close(
void);
134 bool read_property(
property* rp,
int level = 0);
162 SCOPIRA_EXPORT
virtual bool failed(
void)
const;
165 SCOPIRA_EXPORT
virtual size_t write(
const byte_t* _buf,
size_t _size);
167 SCOPIRA_EXPORT
virtual void write_bool(
bool val);
168 SCOPIRA_EXPORT
virtual void write_char(
char val);
169 SCOPIRA_EXPORT
virtual void write_short(
short val);
170 SCOPIRA_EXPORT
virtual void write_int(
int val);
171 SCOPIRA_EXPORT
virtual void write_size_t(
size_t val);
172 SCOPIRA_EXPORT
virtual void write_int64_t(int64_t val);
173 SCOPIRA_EXPORT
virtual void write_long(
long val);
174 SCOPIRA_EXPORT
virtual void write_float(
float val);
175 SCOPIRA_EXPORT
virtual void write_double(
double val);
176 SCOPIRA_EXPORT
virtual void write_string(
const std::string& val);
182 SCOPIRA_EXPORT
void write_keyword(
const std::string& i);
184 SCOPIRA_EXPORT
void write_indent(
int n);
189 SCOPIRA_EXPORT
void close(
void);
192 SCOPIRA_EXPORT
void write_property(
property* rp,
int indent = 0);
Definition: archiveflow.h:20