Xerces-C++  3.1.2
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 
26 
28 
36 // forward declarations
37 class XSAnnotation;
38 class XSParticle;
39 
41 {
42 public:
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 
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  // -----------------------------------------------------------------------
137 };
138 
140 {
141  return fCompositorType;
142 }
143 
145 {
146  return fParticleList;
147 }
148 
150 {
151  return fAnnotation;
152 }
153 
155 
156 #endif
Definition: XSModelGroup.hpp:40
XSAnnotation * getAnnotation() const
Optional.
Definition: XSModelGroup.hpp:149
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
XSParticleList * fParticleList
Definition: XSModelGroup.hpp:135
COMPOSITOR_TYPE
Definition: XSModelGroup.hpp:45
RefVectorOf< XSParticle > XSParticleList
Definition: XSConstants.hpp:52
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
Definition: XSModel.hpp:59
XSParticleList * getParticles() const
A list of [particles].
Definition: XSModelGroup.hpp:144
Definition: XSAnnotation.hpp:41
Configurable memory manager.
Definition: MemoryManager.hpp:39
COMPOSITOR_TYPE getCompositor() const
[compositor]: one of all, choice or sequence.
Definition: XSModelGroup.hpp:139
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
COMPOSITOR_TYPE fCompositorType
Definition: XSModelGroup.hpp:134
Definition: XSObject.hpp:42
XSAnnotation * fAnnotation
Definition: XSModelGroup.hpp:136
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
Definition: XSParticle.hpp:41