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

Revision 358, 2.6 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_Unique.hpp,v 1.6 2004/09/08 13:56:59 peiyongz Exp $
19 */
20
21#if !defined(IC_UNIQUE_HPP)
22#define IC_UNIQUE_HPP
23
24
25/**
26  * Schema unique identity constraint
27  */
28
29// ---------------------------------------------------------------------------
30//  Includes
31// ---------------------------------------------------------------------------
32#include <xercesc/validators/schema/identity/IdentityConstraint.hpp>
33
34XERCES_CPP_NAMESPACE_BEGIN
35
36class VALIDATORS_EXPORT IC_Unique: public IdentityConstraint
37{
38public:
39    // -----------------------------------------------------------------------
40    //  Constructors/Destructor
41    // -----------------------------------------------------------------------
42    IC_Unique(const XMLCh* const identityConstraintName,
43              const XMLCh* const elemName,
44              MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
45        ~IC_Unique();
46
47        // -----------------------------------------------------------------------
48    //  Getter methods
49    // -----------------------------------------------------------------------
50    short getType() const;
51
52    /***
53     * Support for Serialization/De-serialization
54     ***/
55    DECL_XSERIALIZABLE(IC_Unique)
56
57    IC_Unique(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
58
59private:
60    // -----------------------------------------------------------------------
61    //  Unimplemented contstructors and operators
62    // -----------------------------------------------------------------------
63    IC_Unique(const IC_Unique& other);
64    IC_Unique& operator= (const IC_Unique& other);
65};
66
67
68// ---------------------------------------------------------------------------
69//  IC_Unique: Getter methods
70// ---------------------------------------------------------------------------
71inline short IC_Unique::getType() const {
72
73    return IdentityConstraint::UNIQUE;
74}
75
76XERCES_CPP_NAMESPACE_END
77
78#endif
79
80/**
81  * End of file IC_Unique.hpp
82  */
83
Note: See TracBrowser for help on using the repository browser.