xref: /aoo4110/main/autodoc/source/ary/cpp/c_enuval.cxx (revision b1cdbd2c)
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 #include <precomp.h>
23 #include <ary/cpp/c_enuval.hxx>
24 
25 
26 // NOT FULLY DECLARED SERVICES
27 
28 
29 namespace ary
30 {
31 namespace cpp
32 {
33 
34 
EnumValue(const String & i_sLocalName,Ce_id i_nOwner,String i_sInitialisation)35 EnumValue::EnumValue( const String  &     i_sLocalName,
36                       Ce_id               i_nOwner,
37                       String              i_sInitialisation )
38     :   aEssentials( i_sLocalName,
39                      i_nOwner,
40                      Lid(0) ),
41    		sInitialisation(i_sInitialisation)
42 {
43 }
44 
~EnumValue()45 EnumValue::~EnumValue()
46 {
47 }
48 
49 const String  &
inq_LocalName() const50 EnumValue::inq_LocalName() const
51 {
52 	return aEssentials.LocalName();
53 }
54 
55 Cid
inq_Owner() const56 EnumValue::inq_Owner() const
57 {
58 	return aEssentials.Owner();
59 }
60 
61 Lid
inq_Location() const62 EnumValue::inq_Location() const
63 {
64 	return aEssentials.Location();
65 }
66 
67 void
do_Accept(csv::ProcessorIfc & io_processor) const68 EnumValue::do_Accept(csv::ProcessorIfc & io_processor) const
69 {
70     csv::CheckedCall(io_processor,*this);
71 }
72 
73 ClassId
get_AryClass() const74 EnumValue::get_AryClass() const
75 {
76 	return class_id;
77 }
78 
79 
80 }   // namespace cpp
81 }   // namespace ary
82