(file) Return to CIMQualifierDeclRep.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

  1 mike  1.5 //%/////////////////////////////////////////////////////////////////////////////
  2 mike  1.1 //
  3           // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM
  4           //
  5           // Permission is hereby granted, free of charge, to any person obtaining a
  6           // copy of this software and associated documentation files (the "Software"),
  7           // to deal in the Software without restriction, including without limitation
  8           // the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9           // and/or sell copies of the Software, and to permit persons to whom the
 10           // Software is furnished to do so, subject to the following conditions:
 11           //
 12           // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 13           // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 14           // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 15           // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 16           // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 17           // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 18           // DEALINGS IN THE SOFTWARE.
 19           //
 20 mike  1.5 //==============================================================================
 21 mike  1.1 //
 22 mike  1.5 // Author: Mike Brasher (mbrasher@bmc.com)
 23 mike  1.1 //
 24 mike  1.5 // Modified By:
 25 bob   1.3 //
 26 mike  1.5 //%/////////////////////////////////////////////////////////////////////////////
 27 mike  1.1 
 28           #ifndef Pegasus_QualifierDeclRep_h
 29           #define Pegasus_QualifierDeclRep_h
 30           
 31           #include <Pegasus/Common/Config.h>
 32           #include <Pegasus/Common/String.h>
 33           #include <Pegasus/Common/CIMValue.h>
 34           #include <Pegasus/Common/Sharable.h>
 35           #include <Pegasus/Common/Array.h>
 36           #include <Pegasus/Common/Pair.h>
 37           #include <Pegasus/Common/Sharable.h>
 38           #include <Pegasus/Common/Exception.h>
 39           #include <Pegasus/Common/CIMFlavor.h>
 40           #include <Pegasus/Common/CIMScope.h>
 41           
 42           PEGASUS_NAMESPACE_BEGIN
 43           
 44           class CIMConstQualifierDecl;
 45           class CIMQualifierDecl;
 46           
 47           class PEGASUS_COMMON_LINKAGE CIMQualifierDeclRep : public Sharable
 48 mike  1.1 {
 49           public:
 50           
 51               CIMQualifierDeclRep(
 52           	const String& name, 
 53           	const CIMValue& value, 
 54           	Uint32 scope,
 55           	Uint32 flavor,
 56           	Uint32 arraySize);
 57           
 58               virtual ~CIMQualifierDeclRep();
 59           
 60               const String& getName() const 
 61               { 
 62           	return _name; 
 63               }
 64           
 65               void setName(const String& name);
 66           
 67               CIMType getType() const 
 68               {
 69 mike  1.1 	return _value.getType(); 
 70               }
 71           
 72               Boolean isArray() const 
 73               {
 74           	return _value.isArray(); 
 75               }
 76           
 77               const CIMValue& getValue() const 
 78               { 
 79           	return _value; 
 80               }
 81           
 82 mike  1.6     void setValue(const CIMValue& value);
 83 mike  1.1 
 84               Uint32 getScope() const 
 85               {
 86           	return _scope; 
 87               }
 88           
 89               Uint32 getFlavor() const 
 90               {
 91           	return _flavor; 
 92               }
 93           
 94               Uint32 getArraySize() const 
 95               {
 96           	return _arraySize; 
 97               }
 98           
 99               void toXml(Array<Sint8>& out) const;
100           
101 bob   1.3     void print(std::ostream &o=std::cout) const;
102 mike  1.1 
103               Boolean identical(const CIMQualifierDeclRep* x) const;
104           
105               CIMQualifierDeclRep* clone() const
106               {
107           	return new CIMQualifierDeclRep(*this);
108               }
109           
110           private:
111           
112               CIMQualifierDeclRep();
113           
114               CIMQualifierDeclRep(const CIMQualifierDeclRep& x);
115           
116               CIMQualifierDeclRep& operator=(const CIMQualifierDeclRep& x);
117           
118               String _name;
119               CIMValue _value;
120               Uint32 _scope;
121               Uint32 _flavor;
122               Uint32 _arraySize;
123 mike  1.1 };
124           
125           PEGASUS_NAMESPACE_END
126           
127           #endif /* Pegasus_QualifierDeclRep_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2