XSModelGroup.hpp
Go to the documentation of this file.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id$
*/
#if !defined(XERCESC_INCLUDE_GUARD_XSMODELGROUP_HPP)
#define XERCESC_INCLUDE_GUARD_XSMODELGROUP_HPP
#include <xercesc/framework/psvi/XSObject.hpp>
XERCES_CPP_NAMESPACE_BEGIN
// forward declarations
class XSAnnotation;
class XSParticle;
class XMLPARSER_EXPORT XSModelGroup : public XSObject
{
public:
// Content model compositors
enum COMPOSITOR_TYPE {
COMPOSITOR_SEQUENCE = 1,
COMPOSITOR_CHOICE = 2,
COMPOSITOR_ALL = 3
};
// Constructors and Destructor
// -----------------------------------------------------------------------
XSModelGroup
(
COMPOSITOR_TYPE compositorType
, XSParticleList* const particleList
, XSAnnotation* const annot
, XSModel* const xsModel
, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
);
~XSModelGroup();
//---------------------
COMPOSITOR_TYPE getCompositor() const;
XSParticleList *getParticles() const;
XSAnnotation *getAnnotation() const;
//----------------------------------
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
XSModelGroup(const XSModelGroup&);
XSModelGroup & operator=(const XSModelGroup &);
protected:
// -----------------------------------------------------------------------
// data members
// -----------------------------------------------------------------------
COMPOSITOR_TYPE fCompositorType;
XSParticleList* fParticleList;
XSAnnotation* fAnnotation;
};
inline XSModelGroup::COMPOSITOR_TYPE XSModelGroup::getCompositor() const
{
return fCompositorType;
}
inline XSParticleList* XSModelGroup::getParticles() const
{
return fParticleList;
}
inline XSAnnotation* XSModelGroup::getAnnotation() const
{
return fAnnotation;
}
XERCES_CPP_NAMESPACE_END
#endif
XSParticleList
RefVectorOf< XSParticle > XSParticleList
Definition XSConstants.hpp:52
XSObject.hpp
XMLPARSER_EXPORT
#define XMLPARSER_EXPORT
Definition XercesDefs.hpp:163
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
MemoryManager
Configurable memory manager.
Definition MemoryManager.hpp:40
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
XSAnnotation
Definition XSAnnotation.hpp:42
XSModelGroup::getParticles
XSParticleList * getParticles() const
A list of [particles].
Definition XSModelGroup.hpp:144
XSModelGroup::XSModelGroup
XSModelGroup(COMPOSITOR_TYPE compositorType, XSParticleList *const particleList, XSAnnotation *const annot, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
The default constructor.
XSModelGroup::fAnnotation
XSAnnotation * fAnnotation
Definition XSModelGroup.hpp:136
XSModelGroup::getAnnotation
XSAnnotation * getAnnotation() const
Optional.
Definition XSModelGroup.hpp:149
XSModelGroup::COMPOSITOR_TYPE
COMPOSITOR_TYPE
Definition XSModelGroup.hpp:45
XSModelGroup::COMPOSITOR_ALL
@ COMPOSITOR_ALL
This content model represents a simplified version of the SGML &-Connector and is limited to the top-...
Definition XSModelGroup.hpp:59
XSModelGroup::COMPOSITOR_SEQUENCE
@ COMPOSITOR_SEQUENCE
This constant value signifies a sequence operator.
Definition XSModelGroup.hpp:49
XSModelGroup::COMPOSITOR_CHOICE
@ COMPOSITOR_CHOICE
This constant value signifies a choice operator.
Definition XSModelGroup.hpp:53
XSModelGroup::fCompositorType
COMPOSITOR_TYPE fCompositorType
Definition XSModelGroup.hpp:134
XSModelGroup::getCompositor
COMPOSITOR_TYPE getCompositor() const
[compositor]: one of all, choice or sequence.
Definition XSModelGroup.hpp:139
XSModelGroup::fParticleList
XSParticleList * fParticleList
Definition XSModelGroup.hpp:135
XSModelGroup::~XSModelGroup
~XSModelGroup()
XSModel
Definition XSModel.hpp:60
XSObject::XSObject
XSObject(XSConstants::COMPONENT_TYPE compType, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
The default constructor.
XSParticle
Definition XSParticle.hpp:42