Xerces-C++ 3.2.5
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$
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_XSMODELGROUP_HPP)
23#define XERCESC_INCLUDE_GUARD_XSMODELGROUP_HPP
24
26
28
36// forward declarations
37class XSAnnotation;
38class XSParticle;
39
41{
42public:
43
44 // Content model compositors
49 COMPOSITOR_SEQUENCE = 1,
53 COMPOSITOR_CHOICE = 2,
59 COMPOSITOR_ALL = 3
60 };
61
62 // Constructors and Destructor
63 // -----------------------------------------------------------------------
66
77 (
78 COMPOSITOR_TYPE compositorType
79 , XSParticleList* const particleList
80 , XSAnnotation* const annot
81 , XSModel* const xsModel
83 );
84
86
91
92 //---------------------
95
101 COMPOSITOR_TYPE getCompositor() const;
102
106 XSParticleList *getParticles() const;
107
111 XSAnnotation *getAnnotation() const;
112
114
115 //----------------------------------
119
121private:
122
123 // -----------------------------------------------------------------------
124 // Unimplemented constructors and operators
125 // -----------------------------------------------------------------------
127 XSModelGroup & operator=(const XSModelGroup &);
128
129protected:
130
131 // -----------------------------------------------------------------------
132 // data members
133 // -----------------------------------------------------------------------
137};
138
143
145{
146 return fParticleList;
147}
148
150{
151 return fAnnotation;
152}
153
155
156#endif
RefVectorOf< XSParticle > XSParticleList
Definition XSConstants.hpp:52
#define XMLPARSER_EXPORT
Definition XercesDefs.hpp:163
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
Configurable memory manager.
Definition MemoryManager.hpp:40
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
Definition XSAnnotation.hpp:42
Definition XSModelGroup.hpp:41
XSParticleList * getParticles() const
A list of [particles].
Definition XSModelGroup.hpp:144
XSModelGroup(COMPOSITOR_TYPE compositorType, XSParticleList *const particleList, XSAnnotation *const annot, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
The default constructor.
XSAnnotation * fAnnotation
Definition XSModelGroup.hpp:136
XSAnnotation * getAnnotation() const
Optional.
Definition XSModelGroup.hpp:149
COMPOSITOR_TYPE
Definition XSModelGroup.hpp:45
COMPOSITOR_TYPE fCompositorType
Definition XSModelGroup.hpp:134
COMPOSITOR_TYPE getCompositor() const
[compositor]: one of all, choice or sequence.
Definition XSModelGroup.hpp:139
XSParticleList * fParticleList
Definition XSModelGroup.hpp:135
Definition XSModel.hpp:60
Definition XSObject.hpp:43
Definition XSParticle.hpp:42