summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/PSS/PSDL_Enum_Type_Visitor.h
blob: 22d0d2472c3c49116b375b89fd8992f39db1299e (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
/* -*- C++ -*- */
// $Id$
//
// ============================================================================
//
// = LIBRARY
//    PSS
//
// = FILENAME
//    PSDL_Enum_Type_Visitor.h
//
// = DESCRIPTION
//    This class, as the name suggests, is for the generated code for
//    the enum types.
//
// = AUTHOR
//    Priyanka Gontla <gontla_p@ociweb.com>
//
// ============================================================================

#ifndef TAO_PSDL_ENUM_TYPE_VISITOR_H
#define TAO_PSDL_ENUM_TYPE_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_Enum_Type_Visitor : public TAO_PSDL_Node_Visitor
{
 public:

  TAO_PSDL_Enum_Type_Visitor ();

  ~TAO_PSDL_Enum_Type_Visitor ();

  // Override the necessary methods for the enum types.
  int visit_identifier (TAO_PSDL_Identifier *identifier);

  int visit_enumerator (TAO_PSDL_Enumerator *enumerator);

  int visit_predefined_type (TAO_PSDL_Predefined_Type *predefined_type);

 private:

  void print_class_for_enum_type (ACE_CString enum_type_name);

};

#include /**/ "ace/post.h"

#endif /* TAO_PSDL_ENUM_TYPE_VISITOR_H */