xref: /aoo41x/main/autodoc/inc/ary/idl/i_siservice.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_IDL_I_SISERVICE_HXX
25 #define ARY_IDL_I_SISERVICE_HXX
26 
27 // BASE CLASSES
28 #include <ary/idl/i_ce.hxx>
29 
30 
31 
32 
33 namespace ary
34 {
35 namespace idl
36 {
37 namespace ifc_sglifcservice
38 {
39     struct attr;
40 }
41 
42 
43 /** Represents an IDL single interface service.
44 */
45 class SglIfcService : public CodeEntity
46 {
47   public:
48     enum E_ClassId { class_id = 2015 };     // See reposy.cxx
49 
50     // LIFECYCLE
51                         SglIfcService(
52                             const String &      i_sName,
53                             Ce_id               i_nOwner,
54                             Type_id             i_nBaseInterface );
55                         ~SglIfcService();
56     // ACCESS
57     void                Add_Constructor(
58                             Ce_id               i_nId );
59 
60     // INFO
BaseInterface() const61     Type_id             BaseInterface() const   { return nBaseInterface; }
62 
63   private:
64     // Interface csv::ConstProcessorClient:
65     virtual void        do_Accept(
66                             csv::ProcessorIfc & io_processor ) const;
67     // Interface ary::Object:
68     virtual ClassId     get_AryClass() const;
69 
70     // Interface CodeEntity:
71     virtual const String &  inq_LocalName() const;
72     virtual Ce_id           inq_NameRoom() const;
73     virtual Ce_id           inq_Owner() const;
74     virtual E_SightLevel    inq_SightLevel() const;
75 
76     // Local
77     typedef std::vector<Ce_id>          CtorList;
78     friend struct ifc_sglifcservice::attr;
79 
80     // DATA
81     String              sName;
82     Ce_id               nOwner;
83     Type_id             nBaseInterface;
84 
85     CtorList            aConstructors;
86 };
87 
88 
89 
90 
91 // IMPLEMENTATION
92 inline void
Add_Constructor(Ce_id i_nId)93 SglIfcService::Add_Constructor( Ce_id i_nId )
94 {
95     aConstructors.push_back(i_nId);
96 }
97 
98 
99 
100 
101 }   // namespace idl
102 }   // namespace ary
103 #endif
104