Xerces-C++ 3.1.3

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

XSModelGroup.hpp
Go to the documentation of this file.
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18 /*
19 * $Id: XSModelGroup.hpp 527149 2007-04-10 14:56:39Z amassari $
20 */
21
22 #if !defined(XERCESC_INCLUDE_GUARD_XSMODELGROUP_HPP)
23 #define XERCESC_INCLUDE_GUARD_XSMODELGROUP_HPP
24
25 #include <xercesc/framework/psvi/XSObject.hpp>
26
27 XERCES_CPP_NAMESPACE_BEGIN
28
36 // forward declarations
37 class XSAnnotation;
38 class XSParticle;
39
40 class XMLPARSER_EXPORT XSModelGroup : public XSObject
41 {
42 public:
43
44 // Content model compositors
45 enum COMPOSITOR_TYPE {
49 COMPOSITOR_SEQUENCE = 1,
53 COMPOSITOR_CHOICE = 2,
59 COMPOSITOR_ALL = 3
60 };
61
62 // Constructors and Destructor
63 // -----------------------------------------------------------------------
66
76 XSModelGroup
77 (
78 COMPOSITOR_TYPE compositorType
79 , XSParticleList* const particleList
80 , XSAnnotation* const annot
81 , XSModel* const xsModel
82 , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
83 );
84
86
89 ~XSModelGroup();
91
92 //---------------------
95
101 COMPOSITOR_TYPE getCompositor() const;
102
106 XSParticleList *getParticles() const;
107
111 XSAnnotation *getAnnotation() const;
112
114
115 //----------------------------------
119
121 private:
122
123 // -----------------------------------------------------------------------
124 // Unimplemented constructors and operators
125 // -----------------------------------------------------------------------
126 XSModelGroup(const XSModelGroup&);
127 XSModelGroup & operator=(const XSModelGroup &);
128
129 protected:
130
131 // -----------------------------------------------------------------------
132 // data members
133 // -----------------------------------------------------------------------
134 COMPOSITOR_TYPE fCompositorType;
135 XSParticleList* fParticleList;
136 XSAnnotation* fAnnotation;
137 };
138
139 inline XSModelGroup::COMPOSITOR_TYPE XSModelGroup::getCompositor() const
140 {
141 return fCompositorType;
142 }
143
144 inline XSParticleList* XSModelGroup::getParticles() const
145 {
146 return fParticleList;
147 }
148
149 inline XSAnnotation* XSModelGroup::getAnnotation() const
150 {
151 return fAnnotation;
152 }
153
154 XERCES_CPP_NAMESPACE_END
155
156 #endif