14 #ifndef __INCLUDED_SCOPIRA_TOOL_TEXTFLOW_H__ 15 #define __INCLUDED_SCOPIRA_TOOL_TEXTFLOW_H__ 17 #include <scopira/tool/flow.h> 18 #include <scopira/tool/export.h> 58 SCOPIRA_EXPORT
virtual bool failed(
void)
const;
61 SCOPIRA_EXPORT
virtual size_t read(
byte_t* _buf,
size_t _maxsize);
63 SCOPIRA_EXPORT
virtual bool read_bool(
bool&);
64 SCOPIRA_EXPORT
virtual bool read_char(
char&);
65 SCOPIRA_EXPORT
virtual bool read_short(
short&);
66 SCOPIRA_EXPORT
virtual bool read_int(
int&);
69 SCOPIRA_EXPORT
virtual bool read_long(
long&);
70 SCOPIRA_EXPORT
virtual bool read_float(
float&);
72 SCOPIRA_EXPORT
virtual bool read_string(std::string&);
77 SCOPIRA_EXPORT
void close(
void);
105 SCOPIRA_EXPORT
virtual bool failed(
void)
const;
108 SCOPIRA_EXPORT
virtual size_t write(
const byte_t* _buf,
size_t _size);
110 SCOPIRA_EXPORT
virtual void write_bool(
bool val);
111 SCOPIRA_EXPORT
virtual void write_char(
char val);
112 SCOPIRA_EXPORT
virtual void write_short(
short val);
113 SCOPIRA_EXPORT
virtual void write_int(
int val);
114 SCOPIRA_EXPORT
virtual void write_size_t(
size_t val);
115 SCOPIRA_EXPORT
virtual void write_int64_t(int64_t val);
116 SCOPIRA_EXPORT
virtual void write_long(
long val);
117 SCOPIRA_EXPORT
virtual void write_float(
float val);
118 SCOPIRA_EXPORT
virtual void write_double(
double val);
119 SCOPIRA_EXPORT
virtual void write_string(
const std::string& val);
124 SCOPIRA_EXPORT
void close(
void);
virtual bool read_long(long &)
virtual size_t read(byte_t *_buf, size_t _maxsize)
read raw block data, returns num read in
virtual bool read_int64_t(int64_t &)
void close(void)
close the current link
Definition: archiveflow.h:20
count2_ptr< iflow_i > dm_in
input flow
Definition: textflow.h:43
virtual bool read_bool(bool &)
virtual bool read_float(float &)
virtual bool failed(void) const
are we in a failed state?
virtual bool read_size_t(size_t &)
Definition: textflow.h:34
count2_ptr< oflow_i > dm_out
output link
Definition: textflow.h:90
virtual bool read_string(std::string &)
static bool is_whitespace(byte_t b)
is it whitespace?
virtual ~textiflow(void)
destructor
virtual bool read_short(short &)
void open(iflow_i *in)
opens a new link
byte_t non_whitespace(void)
advance stream to next non whitespace and return it
textiflow(bool doref, iflow_i *in)
virtual bool read_char(char &)
Definition: textflow.h:86
virtual bool read_int(int &)
virtual bool read_double(double &)