OpenDDS
Snapshot(2023/04/28-20:55)
|
Go to the source code of this file.
Functions | |
string | type_to_default_array (const std::string &indent, AST_Type *type, const string &name, bool is_anonymous, bool is_union, bool use_cxx11, Classification fld_cls) |
string | type_to_default (const std::string &indent, AST_Type *type, const string &name, bool is_anonymous, bool is_union) |
std::string | field_type_name (AST_Field *field, AST_Type *field_type) |
AST_Type * | deepest_named_type (AST_Type *type) |
AST_Type* deepest_named_type | ( | AST_Type * | type | ) |
For the some situations, like a tag name, the type name we need is the deepest named type, not the actual type. This will be the name of the deepest typedef if it's an array or sequence, otherwise the name of the type.
Definition at line 442 of file dds_generator.cpp.
Referenced by field_type_name(), marshal_generator::gen_enum(), marshal_generator::gen_field_getValueFromSerialized(), metaclass_generator::gen_typedef(), gen_union_branch(), generate_anon_fields(), Intro::insert(), and type_to_default_array().
std::string field_type_name | ( | AST_Field * | field, |
AST_Type * | field_type | ||
) |
Definition at line 425 of file dds_generator.cpp.
References FieldInfo::as_base_, AstTypeClassification::CL_STRING, AstTypeClassification::classify(), deepest_named_type(), name, scoped(), FieldInfo::scoped_type_, string_type(), and FieldInfo::type_.
Referenced by marshal_generator::gen_field_getValueFromSerialized(), marshal_generator::gen_typedef(), gen_union_branch(), generateCaseBody(), and Intro::insert().
string type_to_default | ( | const std::string & | indent, |
AST_Type * | type, | ||
const string & | name, | ||
bool | is_anonymous, | ||
bool | is_union | ||
) |
Definition at line 359 of file dds_generator.cpp.
References be_global, AstTypeClassification::CL_ARRAY, AstTypeClassification::CL_ENUM, AstTypeClassification::CL_FIXED, AstTypeClassification::CL_PRIMITIVE, AstTypeClassification::CL_SEQUENCE, AstTypeClassification::CL_STRING, AstTypeClassification::CL_STRUCTURE, AstTypeClassification::CL_UNION, AstTypeClassification::CL_WIDE, AstTypeClassification::classify(), AstTypeClassification::resolveActualType(), scoped(), and type_to_default_array().
Referenced by bounded_arg(), marshal_generator::gen_enum(), marshal_generator::gen_struct(), marshal_generator::gen_typedef(), marshal_generator::gen_union(), marshal_generator::gen_union_default(), and generateCaseBody().
string type_to_default_array | ( | const std::string & | indent, |
AST_Type * | type, | ||
const string & | name, | ||
bool | is_anonymous, | ||
bool | is_union, | ||
bool | use_cxx11, | ||
Classification | fld_cls | ||
) |
Definition at line 322 of file dds_generator.cpp.
References deepest_named_type(), dds_generator::get_tag_name(), name, and scoped().
Referenced by type_to_default().