source: icXML/icXML-devel/src/xercesc/validators/schema/identity/IC_KeyRef.hpp @ 3565

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

Updates to xercesc sources

File size: 3.3 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: IC_KeyRef.hpp 932887 2010-04-11 13:04:59Z borisk $
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_IC_KEYREF_HPP)
23#define XERCESC_INCLUDE_GUARD_IC_KEYREF_HPP
24
25
26// ---------------------------------------------------------------------------
27//  Includes
28// ---------------------------------------------------------------------------
29#include <icxercesc/validators/schema/identity/IdentityConstraint.hpp>
30
31XERCES_CPP_NAMESPACE_BEGIN
32
33class VALIDATORS_EXPORT IC_KeyRef: public IdentityConstraint
34{
35public:
36    // -----------------------------------------------------------------------
37    //  Constructors/Destructor
38    // -----------------------------------------------------------------------
39    IC_KeyRef
40    (
41        const XMLCh* const identityConstraintName
42        , const XMLCh* const elemName
43        , IdentityConstraint* const icKey
44        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
45    );
46
47    explicit IC_KeyRef
48    (
49        const XMLCh* const identityConstraintName
50        , const XMLCh* const elemName
51        , IdentityConstraint* const icKey
52        , XMLStringPool* const stringPool
53        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
54    );
55
56        ~IC_KeyRef();
57
58        // -----------------------------------------------------------------------
59    //  Getter methods
60    // -----------------------------------------------------------------------
61    short getType() const;
62    IdentityConstraint* getKey() const;
63
64    /***
65     * Support for Serialization/De-serialization
66     ***/
67    DECL_XSERIALIZABLE(IC_KeyRef)
68
69    IC_KeyRef(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
70
71private:
72    // -----------------------------------------------------------------------
73    //  Unimplemented constructors and operators
74    // -----------------------------------------------------------------------
75    IC_KeyRef(const IC_KeyRef& other);
76    IC_KeyRef& operator= (const IC_KeyRef& other);
77
78    // -----------------------------------------------------------------------
79    //  Data members
80    // -----------------------------------------------------------------------
81    IdentityConstraint* fKey;
82};
83
84
85// ---------------------------------------------------------------------------
86//  IC_KeyRef: Getter methods
87// ---------------------------------------------------------------------------
88inline short IC_KeyRef::getType() const {
89
90    return IdentityConstraint::ICType_KEYREF;
91}
92
93inline IdentityConstraint* IC_KeyRef::getKey() const {
94
95    return fKey;
96}
97
98XERCES_CPP_NAMESPACE_END
99
100#endif
101
102/**
103  * End of file IC_KeyRef.hpp
104  */
105
Note: See TracBrowser for help on using the repository browser.