Marsyas
0.6.0-alpha
|
generate json representing a MarSystem and its controls More...
#include <marojson.h>
Inherits marostring.
Public Member Functions | |
virtual void | begin_children (int num_children) |
virtual void | begin_control (std::string type, std::string name, std::string value, bool has_state) |
virtual void | begin_control_links_in (int num_links) |
virtual void | begin_control_links_out (int num_links) |
virtual void | begin_controls (int num_controls) |
virtual void | begin_marsystem (bool isComposite, std::string type, std::string name) |
virtual void | end_children (int num_children) |
virtual void | end_control (std::string type, std::string name, std::string value, bool has_state) |
virtual void | end_control_links_in (int num_links) |
virtual void | end_control_links_out (int num_links) |
virtual void | end_controls (int num_controls) |
virtual void | end_marsystem (bool isComposite, std::string type, std::string name) |
marojson () | |
virtual void | put_control_link_in (std::string abspath, std::string type, std::string name) |
virtual void | put_control_link_out (std::string abspath, std::string type, std::string name) |
std::string & | replace_all (std::string &str, const std::string &oldsubstr, const std::string &newsubstr) |
std::string & | replace_between (std::string &str, const std::string &oldsubstr, const std::string &newsubstr, std::string::size_type from_pos, std::string::size_type to_pos) |
std::string & | smart_indent (std::string &str, const std::string &start, const std::string &end) |
virtual std::string | str () |
virtual | ~marojson () |
Data Fields | |
bool | prettyPrint |
generate json representing a MarSystem and its controls
Definition at line 37 of file marojson.h.
marojson | ( | ) |
Definition at line 28 of file marojson.cpp.
~marojson | ( | ) | [virtual] |
Definition at line 33 of file marojson.cpp.
void begin_children | ( | int | num_children | ) | [virtual] |
Implements marostring.
Definition at line 155 of file marojson.cpp.
void begin_control | ( | std::string | type, |
std::string | name, | ||
std::string | value, | ||
bool | has_state | ||
) | [virtual] |
Implements marostring.
Definition at line 71 of file marojson.cpp.
void begin_control_links_in | ( | int | num_links | ) | [virtual] |
Reimplemented from marostring.
Definition at line 94 of file marojson.cpp.
void begin_control_links_out | ( | int | num_links | ) | [virtual] |
Reimplemented from marostring.
Definition at line 117 of file marojson.cpp.
void begin_controls | ( | int | num_controls | ) | [virtual] |
Implements marostring.
Definition at line 64 of file marojson.cpp.
void begin_marsystem | ( | bool | isComposite, |
std::string | type, | ||
std::string | name | ||
) | [virtual] |
Implements marostring.
Definition at line 39 of file marojson.cpp.
void end_children | ( | int | num_children | ) | [virtual] |
Reimplemented from marostring.
Definition at line 162 of file marojson.cpp.
void end_control | ( | std::string | type, |
std::string | name, | ||
std::string | value, | ||
bool | has_state | ||
) | [virtual] |
Reimplemented from marostring.
Definition at line 139 of file marojson.cpp.
void end_control_links_in | ( | int | num_links | ) | [virtual] |
Reimplemented from marostring.
Definition at line 110 of file marojson.cpp.
void end_control_links_out | ( | int | num_links | ) | [virtual] |
Reimplemented from marostring.
Definition at line 132 of file marojson.cpp.
void end_controls | ( | int | num_controls | ) | [virtual] |
Reimplemented from marostring.
Definition at line 148 of file marojson.cpp.
void end_marsystem | ( | bool | isComposite, |
std::string | type, | ||
std::string | name | ||
) | [virtual] |
Reimplemented from marostring.
Definition at line 55 of file marojson.cpp.
void put_control_link_in | ( | std::string | abspath, |
std::string | type, | ||
std::string | name | ||
) | [virtual] |
Reimplemented from marostring.
Definition at line 100 of file marojson.cpp.
void put_control_link_out | ( | std::string | abspath, |
std::string | type, | ||
std::string | name | ||
) | [virtual] |
Reimplemented from marostring.
Definition at line 123 of file marojson.cpp.
std::string & replace_all | ( | std::string & | str, |
const std::string & | oldsubstr, | ||
const std::string & | newsubstr | ||
) |
Definition at line 209 of file marojson.cpp.
std::string & replace_between | ( | std::string & | str, |
const std::string & | oldsubstr, | ||
const std::string & | newsubstr, | ||
std::string::size_type | from_pos, | ||
std::string::size_type | to_pos | ||
) |
Definition at line 192 of file marojson.cpp.
std::string & smart_indent | ( | std::string & | str, |
const std::string & | start, | ||
const std::string & | end | ||
) |
Definition at line 215 of file marojson.cpp.
std::string str | ( | ) | [virtual] |
Reimplemented from marostring.
Definition at line 169 of file marojson.cpp.
bool prettyPrint |
Definition at line 64 of file marojson.h.