blob: 7910bb72c385bf59a04cda18508177c8910a4a38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/* -*- C++ -*- */
// $Id$
//
// ============================================================================
//
// = LIBRARY
// PSS
//
// = FILENAME
// PSDL_Struct_Visitor.h
//
// = AUTHOR
// Priyanka Gontla <gontla_p@ociweb.com>
//
// ============================================================================
#ifndef TAO_PSDL_STRUCT_VISITOR_H
#define TAO_PSDL_STRUCT_VISITOR_H
#include /**/ "ace/pre.h"
#include "PSDL_Node_Visitor.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class TAO_PSDL_Struct_Visitor : public TAO_PSDL_Node_Visitor
{
public:
TAO_PSDL_Struct_Visitor ();
~TAO_PSDL_Struct_Visitor ();
int visit_identifier (TAO_PSDL_Identifier *identifier);
int visit_type_spec (TAO_PSDL_Type_Spec *type_spec);
int visit_declarator (TAO_PSDL_Declarator *declarator);
// For structs
int visit_predefined_type (TAO_PSDL_Predefined_Type *predefined_type);
// Generate the code that should go into the stub implementation
// file for the type_declarators.
void gen_code_for_si (void);
// Generate the code that should go into the stub inline
// file for the type_declarators.
void gen_code_for_sinline (void);
private:
void print_class_for_structure (ACE_CString struct_name);
// Counter to help print the type_specs and declarators of a
// structure.
int identifiers_count_;
// structure_name
const char *struct_name_;
};
#include /**/ "ace/post.h"
#endif /* TAO_PSDL_STRUCT_VISITOR_H */
|