blob: 2238a03933b0549053131c2670cf730fe640418b (
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
|
/* -*- C++ -*- */
// $Id$
//
// ============================================================================
//
// = LIBRARY
// PSS
//
// = FILENAME
// PSDL_Type_Dcl_Visitor.h
//
// = AUTHOR
// Priyanka Gontla <gontla_p@ociweb.com>
//
// ============================================================================
#ifndef TAO_PSDL_TYPE_DCL_VISITOR_H
#define TAO_PSDL_TYPE_DCL_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_Type_Dcl_Visitor : public TAO_PSDL_Node_Visitor
{
public:
TAO_PSDL_Type_Dcl_Visitor ();
~TAO_PSDL_Type_Dcl_Visitor ();
// All type_dcl's except typedef (Refer to PSDL.yy for type_dcl's
int visit_identifier (TAO_PSDL_Identifier *identifier);
// For typedef s
int visit_type_declarator (TAO_PSDL_Type_Declarator *node);
int visit_predefined_type (TAO_PSDL_Predefined_Type *predefined_type);
private:
void print_for_simple_typedefs (void);
void print_for_sequence_typedefs (ACE_CString identifier_type,
ACE_CString identifier);
// Generate the code that should go into the stub implementation
// file for the type_declarators.
void gen_code_for_si (void);
};
#include "ace/post.h"
#endif /* TAO_PSDL_TYPE_DCL_VISITOR_H */
|