version 1.26.2.1, 2002/10/28 15:43:21
|
version 1.29, 2005/01/16 02:36:28
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2004//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
// Modified By: Carol Ann Krug Graves, Hewlett-Packard Company | // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company |
// (carolann_graves@hp.com) | // (carolann_graves@hp.com) |
|
// David Dillard, VERITAS Software Corp. |
|
// (david.dillard@veritas.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
#define Pegasus_PropertyRep_h | #define Pegasus_PropertyRep_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/Exception.h> |
#include <Pegasus/Common/InternalException.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
|
#include <Pegasus/Common/CIMName.h> |
#include <Pegasus/Common/CIMValue.h> | #include <Pegasus/Common/CIMValue.h> |
#include <Pegasus/Common/CIMQualifier.h> | #include <Pegasus/Common/CIMQualifier.h> |
#include <Pegasus/Common/CIMQualifierList.h> | #include <Pegasus/Common/CIMQualifierList.h> |
|
|
public: | public: |
| |
CIMPropertyRep( | CIMPropertyRep( |
const String& name, |
const CIMName& name, |
const CIMValue& value, | const CIMValue& value, |
Uint32 arraySize, | Uint32 arraySize, |
const String& referenceClassName, |
const CIMName& referenceClassName, |
const String& classOrigin, |
const CIMName& classOrigin, |
Boolean propagated); | Boolean propagated); |
| |
~CIMPropertyRep(); | ~CIMPropertyRep(); |
| |
const String& getName() const |
const CIMName& getName() const |
{ | { |
return _name; | return _name; |
} | } |
| |
void setName(const String& name); |
void setName(const CIMName& name); |
| |
const CIMValue& getValue() const | const CIMValue& getValue() const |
{ | { |
|
|
return _arraySize; | return _arraySize; |
} | } |
| |
const String& getReferenceClassName() const |
const CIMName& getReferenceClassName() const |
{ | { |
return _referenceClassName; | return _referenceClassName; |
} | } |
| |
const String& getClassOrigin() const |
const CIMName& getClassOrigin() const |
{ | { |
return _classOrigin; | return _classOrigin; |
} | } |
| |
void setClassOrigin(const String& classOrigin); |
void setClassOrigin(const CIMName& classOrigin); |
| |
Boolean getPropagated() const | Boolean getPropagated() const |
{ | { |
|
|
_qualifiers.add(qualifier); | _qualifiers.add(qualifier); |
} | } |
| |
Uint32 findQualifier(const String& name) const |
Uint32 findQualifier(const CIMName& name) const |
{ | { |
return _qualifiers.find(name); | return _qualifiers.find(name); |
} | } |
| |
CIMQualifier getQualifier(Uint32 pos) |
CIMQualifier getQualifier(Uint32 index) |
{ | { |
return _qualifiers.getQualifier(pos); |
return _qualifiers.getQualifier(index); |
} | } |
| |
CIMConstQualifier getQualifier(Uint32 pos) const |
CIMConstQualifier getQualifier(Uint32 index) const |
{ | { |
return _qualifiers.getQualifier(pos); |
return _qualifiers.getQualifier(index); |
} | } |
| |
void removeQualifier(Uint32 pos) |
void removeQualifier(Uint32 index) |
{ | { |
_qualifiers.removeQualifier(pos); |
_qualifiers.removeQualifier(index); |
} | } |
| |
Uint32 getQualifierCount() const | Uint32 getQualifierCount() const |
|
|
| |
void resolve( | void resolve( |
DeclContext* declContext, | DeclContext* declContext, |
const String& nameSpace, |
const CIMNamespaceName& nameSpace, |
Boolean isInstancePart, | Boolean isInstancePart, |
const CIMConstProperty& property, | const CIMConstProperty& property, |
Boolean propagateQualifiers); | Boolean propagateQualifiers); |
| |
void resolve( | void resolve( |
DeclContext* declContext, | DeclContext* declContext, |
const String& nameSpace, |
const CIMNamespaceName& nameSpace, |
Boolean isInstancePart, | Boolean isInstancePart, |
Boolean propagateQualifiers); | Boolean propagateQualifiers); |
| |
void toXml(Array<Sint8>& out) const; |
void toXml(Array<char>& out) const; |
| |
void toMof(Array<Sint8>& out) const; |
void toMof(Array<char>& out) const; |
| |
Boolean identical(const CIMPropertyRep* x) const; | Boolean identical(const CIMPropertyRep* x) const; |
| |
Boolean isKey() const; |
CIMPropertyRep* clone() const |
|
|
CIMPropertyRep* clone(Boolean propagateQualifiers) const |
|
{ | { |
return new CIMPropertyRep(*this, propagateQualifiers); |
return new CIMPropertyRep(*this, true); |
} | } |
| |
private: | private: |
|
|
return *this; | return *this; |
} | } |
| |
String _name; |
CIMName _name; |
CIMValue _value; | CIMValue _value; |
Uint32 _arraySize; | Uint32 _arraySize; |
String _referenceClassName; |
CIMName _referenceClassName; |
String _classOrigin; |
CIMName _classOrigin; |
Boolean _propagated; | Boolean _propagated; |
CIMQualifierList _qualifiers; | CIMQualifierList _qualifiers; |
| |