xref: /aoo42x/main/autodoc/inc/ary/cpp/c_enuval.hxx (revision 1c78a5d6)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef ARY_CPP_C_ENUVAL_HXX
25 #define ARY_CPP_C_ENUVAL_HXX
26 
27 
28 // USED SERVICES
29 	// BASE CLASSES
30 #include <ary/cpp/c_ce.hxx>
31 	// OTHER
32 #include <ary/cessentl.hxx>
33 #include <ary/cpp/c_types4cpp.hxx>
34 
35 
36 
37 namespace ary
38 {
39 namespace cpp
40 {
41 
42 
43 
44 /** A C++ enum value declaration and definition.
45 */
46 class EnumValue : public CodeEntity
47 {
48   public:
49     enum E_ClassId { class_id = 1006 };
50 
51     // LIFECYCLE
52 						EnumValue(
53                             const String  &     i_sLocalName,
54                             Ce_id               i_nOwner,
55                             String              i_sInitialisation );
56 						~EnumValue();
57     // INQUIRY
58 	const String  &     Initialisation() const;
59 
60   private:
61     // Interface csv::ConstProcessorClient
62     virtual void        do_Accept(
63                             csv::ProcessorIfc & io_processor ) const;
64 
65     // Interface ary::cpp::CodeEntity
66 	virtual const String  &
67                         inq_LocalName() const;
68 	virtual Cid         inq_Owner() const;
69 	virtual Lid			inq_Location() const;
70 
71     // Interface ary::cpp::CppEntity
72     virtual ClassId     get_AryClass() const;
73 
74     // DATA
75 	CeEssentials		aEssentials;
76     String              sInitialisation;
77 };
78 
79 
80 
81 
82 // IMPLEMENTATION
83 inline const String  &
Initialisation() const84 EnumValue::Initialisation() const
85     { return sInitialisation; }
86 
87 
88 
89 
90 }   // namespace cpp
91 }   // namespace ary
92 #endif
93