source: NonGTP/Xerces/xerces/include/xercesc/validators/schema/identity/IC_Key.hpp @ 358

Revision 358, 2.5 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_Key.hpp,v 1.6 2004/09/08 13:56:59 peiyongz Exp $
19 */
20
21#if !defined(IC_KEY_HPP)
22#define IC_KEY_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_Key: public IdentityConstraint
33{
34public:
35    // -----------------------------------------------------------------------
36    //  Constructors/Destructor
37    // -----------------------------------------------------------------------
38    IC_Key(const XMLCh* const identityConstraintName,
39           const XMLCh* const elemName,
40           MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
41        ~IC_Key();
42
43        // -----------------------------------------------------------------------
44    //  Getter methods
45    // -----------------------------------------------------------------------
46    short getType() const;
47
48    /***
49     * Support for Serialization/De-serialization
50     ***/
51    DECL_XSERIALIZABLE(IC_Key)
52
53    IC_Key(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
54
55private:
56    // -----------------------------------------------------------------------
57    //  Unimplemented contstructors and operators
58    // -----------------------------------------------------------------------
59    IC_Key(const IC_Key& other);
60    IC_Key& operator= (const IC_Key& other);
61};
62
63
64// ---------------------------------------------------------------------------
65//  IC_Key: Getter methods
66// ---------------------------------------------------------------------------
67inline short IC_Key::getType() const {
68
69    return IdentityConstraint::KEY;
70}
71
72XERCES_CPP_NAMESPACE_END
73
74#endif
75
76/**
77  * End of file IC_Key.hpp
78  */
79
Note: See TracBrowser for help on using the repository browser.