OpenDDS  Snapshot(2023/04/28-20:55)
metaclass_generator.h
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #ifndef metaclass_generator_H
9 #define metaclass_generator_H
10 
11 #include "dds_generator.h"
12 
14 public:
16  : first_struct_(true)
17  {}
18 
19  bool gen_enum(AST_Enum* node, UTL_ScopedName* name,
20  const std::vector<AST_EnumVal*>& contents, const char* repoid);
21 
22  bool gen_struct(AST_Structure* node, UTL_ScopedName* name,
23  const std::vector<AST_Field*>& fields,
24  AST_Type::SIZE_TYPE size, const char* repoid);
25 
26  bool gen_typedef(AST_Typedef* node, UTL_ScopedName* name, AST_Type* type, const char* repoid);
27 
28  bool gen_union(AST_Union* node, UTL_ScopedName* name,
29  const std::vector<AST_UnionBranch*>& branches,
30  AST_Type* type, const char* repoid);
31 
32 private:
34 };
35 
36 #endif
bool gen_union(AST_Union *node, UTL_ScopedName *name, const std::vector< AST_UnionBranch *> &branches, AST_Type *type, const char *repoid)
bool gen_enum(AST_Enum *node, UTL_ScopedName *name, const std::vector< AST_EnumVal *> &contents, const char *repoid)
const char *const name
Definition: debug.cpp:60
bool gen_typedef(AST_Typedef *node, UTL_ScopedName *name, AST_Type *type, const char *repoid)
bool gen_struct(AST_Structure *node, UTL_ScopedName *name, const std::vector< AST_Field *> &fields, AST_Type::SIZE_TYPE size, const char *repoid)