OpenSDN source code
|
Public Member Functions | |
t_xsd_generator (t_program *program, const std::map< std::string, std::string > &parsed_options, const std::string &option_string) | |
virtual | ~t_xsd_generator () |
void | init_generator () |
void | close_generator () |
void | generate_typedef (t_typedef *ttypedef) |
void | generate_enum (t_enum *tenum) |
void | generate_service (t_service *tservice) |
void | generate_struct (t_struct *tstruct) |
![]() | |
t_generator (t_program *program) | |
virtual | ~t_generator () |
virtual void | generate_program () |
const t_program * | get_program () const |
void | generate_docstring_comment (std::ofstream &out, const std::string &comment_start, const std::string &line_prefix, const std::string &contents, const std::string &comment_end) |
virtual std::string | escape_string (const std::string &in) const |
std::string | get_escaped_string (t_const_value *constval) |
Private Member Functions | |
void | generate_element (std::ostream &out, std::string name, t_type *ttype, t_struct *attrs=NULL, bool optional=false, bool nillable=false, bool list_element=false) |
std::string | ns (std::string in, std::string ns) |
std::string | xsd (std::string in) |
std::string | type_name (t_type *ttype) |
std::string | base_type_name (t_base_type::t_base tbase) |
Private Attributes | |
std::ofstream | f_xsd_ |
std::ofstream | f_php_ |
std::ostringstream | s_xsd_types_ |
Additional Inherited Members | |
![]() | |
static bool | is_valid_namespace (const std::string &sub_namespace) |
static t_type * | get_true_type (t_type *type) |
![]() | |
virtual void | generate_consts (std::vector< t_const * > consts) |
virtual void | generate_const (t_const *tconst) |
virtual void | generate_xception (t_struct *txception) |
virtual std::string | get_program_name (t_program *tprogram) |
virtual std::string | get_service_name (t_service *tservice) |
virtual std::string | get_out_dir () const |
std::string | tmp (std::string name) |
void | indent_up () |
void | indent_down () |
std::string | indent () |
std::ostream & | indent (std::ostream &os) |
std::string | capitalize (std::string in) |
std::string | decapitalize (std::string in) |
std::string | lowercase (std::string in) |
std::string | uppercase (std::string in) |
std::string | underscore (std::string in) |
std::string | camelcase (std::string in) |
![]() | |
t_program * | program_ |
std::string | program_name_ |
std::string | service_name_ |
std::string | out_dir_base_ |
std::map< char, std::string > | escape_ |
XSD generator, creates an XSD for the base types etc.
Definition at line 36 of file t_xsd_generator.cc.
|
inline |
Definition at line 38 of file t_xsd_generator.cc.
|
inlinevirtual |
Definition at line 49 of file t_xsd_generator.cc.
|
private |
Returns the XSD type that corresponds to the thrift type.
tbase | The base type |
Definition at line 387 of file t_xsd_generator.cc.
|
virtual |
Reimplemented from t_generator.
Definition at line 121 of file t_xsd_generator.cc.
|
inlinevirtual |
Implements t_generator.
Definition at line 63 of file t_xsd_generator.cc.
|
virtual |
Implements t_generator.
Definition at line 303 of file t_xsd_generator.cc.
|
virtual |
Implements t_generator.
Definition at line 157 of file t_xsd_generator.cc.
|
virtual |
Program-level generation functions
Implements t_generator.
Definition at line 131 of file t_xsd_generator.cc.
|
virtual |
Init and close methods
Reimplemented from t_generator.
Definition at line 103 of file t_xsd_generator.cc.
|
inlineprivate |
Definition at line 78 of file t_xsd_generator.cc.
|
private |
|
inlineprivate |
Definition at line 82 of file t_xsd_generator.cc.
|
private |
Definition at line 93 of file t_xsd_generator.cc.
|
private |
Output xsd/php file
Definition at line 92 of file t_xsd_generator.cc.
|
private |
Output string stream
Definition at line 98 of file t_xsd_generator.cc.