source: icXML/icXML-devel/src/xercesc/validators/common/CMAny.hpp @ 2722

Last change on this file since 2722 was 2722, checked in by cameron, 6 years ago

Original Xerces files with import mods for icxercesc

File size: 3.6 KB
Line 
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: CMAny.hpp 677396 2008-07-16 19:36:20Z amassari $
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_CMANY_HPP)
23#define XERCESC_INCLUDE_GUARD_CMANY_HPP
24
25#include <xercesc/validators/common/CMNode.hpp>
26
27XERCES_CPP_NAMESPACE_BEGIN
28
29class CMStateSet;
30
31class CMAny : public CMNode
32{
33public :
34    // -----------------------------------------------------------------------
35    //  Constructors
36    // -----------------------------------------------------------------------
37    CMAny
38    (
39        ContentSpecNode::NodeTypes      type
40        , unsigned int                  URI
41        , unsigned int                  position
42        , unsigned int                  maxStates
43        ,       MemoryManager* const    manager = XMLPlatformUtils::fgMemoryManager
44    );
45    ~CMAny();
46
47    // -----------------------------------------------------------------------
48    //  Getter methods
49    // -----------------------------------------------------------------------
50    unsigned int getURI() const;
51
52    unsigned int getPosition() const;
53
54    // -----------------------------------------------------------------------
55    //  Setter methods
56    // -----------------------------------------------------------------------
57    void setPosition(const unsigned int newPosition);
58
59    // -----------------------------------------------------------------------
60    //  Implementation of the public CMNode virtual interface
61    // -----------------------------------------------------------------------
62    virtual void orphanChild();
63
64
65protected :
66    // -----------------------------------------------------------------------
67    //  Implementation of the protected CMNode virtual interface
68    // -----------------------------------------------------------------------
69    void calcFirstPos(CMStateSet& toSet) const;
70    void calcLastPos(CMStateSet& toSet) const;
71
72private :
73    // -----------------------------------------------------------------------
74    //  Private data members
75    //
76    //  fURI;
77    //  URI of the any content model. This value is set if the type is
78    //  of the following:
79    //  XMLContentSpec.CONTENTSPECNODE_ANY,
80    //  XMLContentSpec.CONTENTSPECNODE_ANY_OTHER.
81    //
82    //  fPosition
83    //  Part of the algorithm to convert a regex directly to a DFA
84    //  numbers each leaf sequentially. If its -1, that means its an
85    //  epsilon node. Zero and greater are non-epsilon positions.
86    // -----------------------------------------------------------------------
87    unsigned int fURI;
88    unsigned int fPosition;
89
90    // -----------------------------------------------------------------------
91    //  Unimplemented constructors and operators
92    // -----------------------------------------------------------------------
93    CMAny(const CMAny&);
94    CMAny& operator=(const CMAny&);
95};
96
97XERCES_CPP_NAMESPACE_END
98
99#endif
Note: See TracBrowser for help on using the repository browser.