source: icXML/icXML-devel/src/xercesc/validators/schema/identity/IC_Unique.hpp @ 2722

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

Original Xerces files with import mods for icxercesc

File size: 2.7 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 <xercesc/validators/schema/identity/IdentityConstraint.hpp>
34
35XERCES_CPP_NAMESPACE_BEGIN
36
37class VALIDATORS_EXPORT IC_Unique: public IdentityConstraint
38{
39public:
40    // -----------------------------------------------------------------------
41    //  Constructors/Destructor
42    // -----------------------------------------------------------------------
43    IC_Unique(const XMLCh* const identityConstraintName,
44              const XMLCh* const elemName,
45              MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
46        ~IC_Unique();
47
48        // -----------------------------------------------------------------------
49    //  Getter methods
50    // -----------------------------------------------------------------------
51    short getType() const;
52
53    /***
54     * Support for Serialization/De-serialization
55     ***/
56    DECL_XSERIALIZABLE(IC_Unique)
57
58    IC_Unique(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
59
60private:
61    // -----------------------------------------------------------------------
62    //  Unimplemented constructors and operators
63    // -----------------------------------------------------------------------
64    IC_Unique(const IC_Unique& other);
65    IC_Unique& operator= (const IC_Unique& other);
66};
67
68
69// ---------------------------------------------------------------------------
70//  IC_Unique: Getter methods
71// ---------------------------------------------------------------------------
72inline short IC_Unique::getType() const {
73
74    return IdentityConstraint::ICType_UNIQUE;
75}
76
77XERCES_CPP_NAMESPACE_END
78
79#endif
80
81/**
82  * End of file IC_Unique.hpp
83  */
84
Note: See TracBrowser for help on using the repository browser.