OpenDDS  Snapshot(2023/04/28-20:55)
ts_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 ts_generator_H
9 #define ts_generator_H
10 
11 #include "dds_generator.h"
12 
13 #include <string>
14 
15 namespace java_ts_generator {
16  void generate(AST_Structure* node);
17 }
18 
19 namespace face_ts_generator {
20  void generate(UTL_ScopedName* name);
21 }
22 
23 class ts_generator : public dds_generator {
24 public:
25  ts_generator();
26 
27  bool gen_struct(AST_Structure* node, UTL_ScopedName* name,
28  const std::vector<AST_Field*>& fields,
29  AST_Type::SIZE_TYPE size, const char* repoid);
30 
31  bool gen_typedef(AST_Typedef*, UTL_ScopedName*, AST_Type*, const char*)
32  { return true; }
33 
34  bool gen_union(AST_Union* node, UTL_ScopedName* name, const std::vector<AST_UnionBranch*>&,
35  AST_Type*, const char*);
36 
37 private:
38  bool generate_ts(AST_Decl* node, UTL_ScopedName* name);
39 
40  std::string idl_template_;
41 };
42 
43 #endif
std::string idl_template_
Definition: ts_generator.h:40
const char *const name
Definition: debug.cpp:60
bool gen_typedef(AST_Typedef *, UTL_ScopedName *, AST_Type *, const char *)
Definition: ts_generator.h:31
void generate(AST_Structure *node)
called directly by dds_visitor::visit_structure() if -Wb,java