source: tags/VUT/0.4/GtpVisibilityPreprocessor/support/xerces/include/xercesc/validators/schema/identity/IC_KeyRef.hpp @ 358

Revision 358, 2.9 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 2001,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Id: IC_KeyRef.hpp,v 1.6 2004/09/08 13:56:59 peiyongz Exp $
19 */
20
21#if !defined(IC_KEYREF_HPP)
22#define IC_KEYREF_HPP
23
24
25// ---------------------------------------------------------------------------
26//  Includes
27// ---------------------------------------------------------------------------
28#include <xercesc/validators/schema/identity/IdentityConstraint.hpp>
29
30XERCES_CPP_NAMESPACE_BEGIN
31
32class VALIDATORS_EXPORT IC_KeyRef: public IdentityConstraint
33{
34public:
35    // -----------------------------------------------------------------------
36    //  Constructors/Destructor
37    // -----------------------------------------------------------------------
38    IC_KeyRef(const XMLCh* const identityConstraintName,
39              const XMLCh* const elemName,
40              IdentityConstraint* const icKey,
41              MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
42        ~IC_KeyRef();
43
44        // -----------------------------------------------------------------------
45    //  Getter methods
46    // -----------------------------------------------------------------------
47    short getType() const;
48    IdentityConstraint* getKey() const;
49
50    /***
51     * Support for Serialization/De-serialization
52     ***/
53    DECL_XSERIALIZABLE(IC_KeyRef)
54
55    IC_KeyRef(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
56
57private:
58    // -----------------------------------------------------------------------
59    //  Unimplemented contstructors and operators
60    // -----------------------------------------------------------------------
61    IC_KeyRef(const IC_KeyRef& other);
62    IC_KeyRef& operator= (const IC_KeyRef& other);
63
64    // -----------------------------------------------------------------------
65    //  Data members
66    // -----------------------------------------------------------------------
67    IdentityConstraint* fKey;
68};
69
70
71// ---------------------------------------------------------------------------
72//  IC_KeyRef: Getter methods
73// ---------------------------------------------------------------------------
74inline short IC_KeyRef::getType() const {
75
76    return IdentityConstraint::KEYREF;
77}
78
79inline IdentityConstraint* IC_KeyRef::getKey() const {
80
81    return fKey;
82}
83
84XERCES_CPP_NAMESPACE_END
85
86#endif
87
88/**
89  * End of file IC_KeyRef.hpp
90  */
91
Note: See TracBrowser for help on using the repository browser.