|
@@ -41,7 +41,7 @@ PUBLISHED:
|
|
|
void begin_pack(const DCPackerInterface *root);
|
|
void begin_pack(const DCPackerInterface *root);
|
|
|
bool end_pack();
|
|
bool end_pack();
|
|
|
|
|
|
|
|
- void set_unpack_data(const string &data);
|
|
|
|
|
|
|
+ void set_unpack_data(const std::string &data);
|
|
|
public:
|
|
public:
|
|
|
void set_unpack_data(const char *unpack_data, size_t unpack_length,
|
|
void set_unpack_data(const char *unpack_data, size_t unpack_length,
|
|
|
bool owns_unpack_data);
|
|
bool owns_unpack_data);
|
|
@@ -53,7 +53,7 @@ PUBLISHED:
|
|
|
void begin_repack(const DCPackerInterface *root);
|
|
void begin_repack(const DCPackerInterface *root);
|
|
|
bool end_repack();
|
|
bool end_repack();
|
|
|
|
|
|
|
|
- bool seek(const string &field_name);
|
|
|
|
|
|
|
+ bool seek(const std::string &field_name);
|
|
|
bool seek(int seek_index);
|
|
bool seek(int seek_index);
|
|
|
|
|
|
|
|
INLINE bool has_nested_fields() const;
|
|
INLINE bool has_nested_fields() const;
|
|
@@ -64,7 +64,7 @@ PUBLISHED:
|
|
|
INLINE const DCPackerInterface *get_current_field() const;
|
|
INLINE const DCPackerInterface *get_current_field() const;
|
|
|
INLINE const DCSwitchParameter *get_last_switch() const;
|
|
INLINE const DCSwitchParameter *get_last_switch() const;
|
|
|
INLINE DCPackType get_pack_type() const;
|
|
INLINE DCPackType get_pack_type() const;
|
|
|
- INLINE string get_current_field_name() const;
|
|
|
|
|
|
|
+ INLINE std::string get_current_field_name() const;
|
|
|
|
|
|
|
|
void push();
|
|
void push();
|
|
|
void pop();
|
|
void pop();
|
|
@@ -74,8 +74,8 @@ PUBLISHED:
|
|
|
INLINE void pack_uint(unsigned int value);
|
|
INLINE void pack_uint(unsigned int value);
|
|
|
INLINE void pack_int64(int64_t value);
|
|
INLINE void pack_int64(int64_t value);
|
|
|
INLINE void pack_uint64(uint64_t value);
|
|
INLINE void pack_uint64(uint64_t value);
|
|
|
- INLINE void pack_string(const string &value);
|
|
|
|
|
- INLINE void pack_literal_value(const string &value);
|
|
|
|
|
|
|
+ INLINE void pack_string(const std::string &value);
|
|
|
|
|
+ INLINE void pack_literal_value(const std::string &value);
|
|
|
void pack_default_value();
|
|
void pack_default_value();
|
|
|
|
|
|
|
|
INLINE double unpack_double();
|
|
INLINE double unpack_double();
|
|
@@ -83,8 +83,8 @@ PUBLISHED:
|
|
|
INLINE unsigned int unpack_uint();
|
|
INLINE unsigned int unpack_uint();
|
|
|
INLINE int64_t unpack_int64();
|
|
INLINE int64_t unpack_int64();
|
|
|
INLINE uint64_t unpack_uint64();
|
|
INLINE uint64_t unpack_uint64();
|
|
|
- INLINE string unpack_string();
|
|
|
|
|
- INLINE string unpack_literal_value();
|
|
|
|
|
|
|
+ INLINE std::string unpack_string();
|
|
|
|
|
+ INLINE std::string unpack_literal_value();
|
|
|
void unpack_validate();
|
|
void unpack_validate();
|
|
|
void unpack_skip();
|
|
void unpack_skip();
|
|
|
|
|
|
|
@@ -96,8 +96,8 @@ public:
|
|
|
INLINE void unpack_uint(unsigned int &value);
|
|
INLINE void unpack_uint(unsigned int &value);
|
|
|
INLINE void unpack_int64(int64_t &value);
|
|
INLINE void unpack_int64(int64_t &value);
|
|
|
INLINE void unpack_uint64(uint64_t &value);
|
|
INLINE void unpack_uint64(uint64_t &value);
|
|
|
- INLINE void unpack_string(string &value);
|
|
|
|
|
- INLINE void unpack_literal_value(string &value);
|
|
|
|
|
|
|
+ INLINE void unpack_string(std::string &value);
|
|
|
|
|
+ INLINE void unpack_literal_value(std::string &value);
|
|
|
|
|
|
|
|
PUBLISHED:
|
|
PUBLISHED:
|
|
|
|
|
|
|
@@ -106,10 +106,10 @@ PUBLISHED:
|
|
|
PyObject *unpack_object();
|
|
PyObject *unpack_object();
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
- bool parse_and_pack(const string &formatted_object);
|
|
|
|
|
- bool parse_and_pack(istream &in);
|
|
|
|
|
- string unpack_and_format(bool show_field_names = true);
|
|
|
|
|
- void unpack_and_format(ostream &out, bool show_field_names = true);
|
|
|
|
|
|
|
+ bool parse_and_pack(const std::string &formatted_object);
|
|
|
|
|
+ bool parse_and_pack(std::istream &in);
|
|
|
|
|
+ std::string unpack_and_format(bool show_field_names = true);
|
|
|
|
|
+ void unpack_and_format(std::ostream &out, bool show_field_names = true);
|
|
|
|
|
|
|
|
INLINE bool had_parse_error() const;
|
|
INLINE bool had_parse_error() const;
|
|
|
INLINE bool had_pack_error() const;
|
|
INLINE bool had_pack_error() const;
|
|
@@ -118,11 +118,11 @@ PUBLISHED:
|
|
|
INLINE size_t get_num_unpacked_bytes() const;
|
|
INLINE size_t get_num_unpacked_bytes() const;
|
|
|
|
|
|
|
|
INLINE size_t get_length() const;
|
|
INLINE size_t get_length() const;
|
|
|
- INLINE string get_string() const;
|
|
|
|
|
|
|
+ INLINE std::string get_string() const;
|
|
|
INLINE size_t get_unpack_length() const;
|
|
INLINE size_t get_unpack_length() const;
|
|
|
- INLINE string get_unpack_string() const;
|
|
|
|
|
|
|
+ INLINE std::string get_unpack_string() const;
|
|
|
public:
|
|
public:
|
|
|
- INLINE void get_string(string &data) const;
|
|
|
|
|
|
|
+ INLINE void get_string(std::string &data) const;
|
|
|
INLINE const char *get_data() const;
|
|
INLINE const char *get_data() const;
|
|
|
INLINE char *take_data();
|
|
INLINE char *take_data();
|
|
|
|
|
|
|
@@ -147,7 +147,7 @@ PUBLISHED:
|
|
|
INLINE void raw_pack_uint32(unsigned int value);
|
|
INLINE void raw_pack_uint32(unsigned int value);
|
|
|
INLINE void raw_pack_uint64(uint64_t value);
|
|
INLINE void raw_pack_uint64(uint64_t value);
|
|
|
INLINE void raw_pack_float64(double value);
|
|
INLINE void raw_pack_float64(double value);
|
|
|
- INLINE void raw_pack_string(const string &value);
|
|
|
|
|
|
|
+ INLINE void raw_pack_string(const std::string &value);
|
|
|
|
|
|
|
|
// this is a hack to allw me to get in and out of 32bit Mode Faster need to
|
|
// this is a hack to allw me to get in and out of 32bit Mode Faster need to
|
|
|
// agree with channel_type in dcbase.h
|
|
// agree with channel_type in dcbase.h
|
|
@@ -164,7 +164,7 @@ PUBLISHED:
|
|
|
INLINE unsigned int raw_unpack_uint32();
|
|
INLINE unsigned int raw_unpack_uint32();
|
|
|
INLINE uint64_t raw_unpack_uint64();
|
|
INLINE uint64_t raw_unpack_uint64();
|
|
|
INLINE double raw_unpack_float64();
|
|
INLINE double raw_unpack_float64();
|
|
|
- INLINE string raw_unpack_string();
|
|
|
|
|
|
|
+ INLINE std::string raw_unpack_string();
|
|
|
|
|
|
|
|
public:
|
|
public:
|
|
|
INLINE void raw_unpack_int8(int &value);
|
|
INLINE void raw_unpack_int8(int &value);
|
|
@@ -176,11 +176,11 @@ public:
|
|
|
INLINE void raw_unpack_uint32(unsigned int &value);
|
|
INLINE void raw_unpack_uint32(unsigned int &value);
|
|
|
INLINE void raw_unpack_uint64(uint64_t &value);
|
|
INLINE void raw_unpack_uint64(uint64_t &value);
|
|
|
INLINE void raw_unpack_float64(double &value);
|
|
INLINE void raw_unpack_float64(double &value);
|
|
|
- INLINE void raw_unpack_string(string &value);
|
|
|
|
|
|
|
+ INLINE void raw_unpack_string(std::string &value);
|
|
|
|
|
|
|
|
public:
|
|
public:
|
|
|
- static void enquote_string(ostream &out, char quote_mark, const string &str);
|
|
|
|
|
- static void output_hex_string(ostream &out, const string &str);
|
|
|
|
|
|
|
+ static void enquote_string(std::ostream &out, char quote_mark, const std::string &str);
|
|
|
|
|
+ static void output_hex_string(std::ostream &out, const std::string &str);
|
|
|
|
|
|
|
|
private:
|
|
private:
|
|
|
INLINE void advance();
|
|
INLINE void advance();
|