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