version 1.12, 2002/05/15 23:14:19
|
version 1.19, 2002/07/30 16:14:53
|
|
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
|
// The Open Group, Tivoli Systems |
// | // |
// 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 |
|
|
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: |
// Modified By: Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
#define Pegasus_CIMObjectRep_h | #define Pegasus_CIMObjectRep_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
|
#include <Pegasus/Common/Linkage.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
#include <Pegasus/Common/Sharable.h> | #include <Pegasus/Common/Sharable.h> |
|
#include <Pegasus/Common/CIMName.h> |
#include <Pegasus/Common/CIMProperty.h> | #include <Pegasus/Common/CIMProperty.h> |
#include <Pegasus/Common/CIMQualifier.h> | #include <Pegasus/Common/CIMQualifier.h> |
#include <Pegasus/Common/CIMQualifierList.h> | #include <Pegasus/Common/CIMQualifierList.h> |
|
|
| |
virtual ~CIMObjectRep(); | virtual ~CIMObjectRep(); |
| |
const String& getClassName() const |
const CIMName& getClassName() const |
{ | { |
return _reference.getClassName(); | return _reference.getClassName(); |
} | } |
| |
const Boolean equalClassName(const String& classname) const |
|
{ |
|
return (String::equalNoCase(classname, _reference.getClassName())); |
|
} |
|
|
|
const CIMObjectPath& getPath() const | const CIMObjectPath& getPath() const |
{ | { |
return _reference; | return _reference; |
} | } |
| |
|
/** |
|
Sets the object path for the object |
|
@param path CIMObjectPath containing the object path |
|
*/ |
|
void setPath (const CIMObjectPath & path); |
|
|
void addQualifier(const CIMQualifier& qualifier) | void addQualifier(const CIMQualifier& qualifier) |
{ | { |
_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); |
} | } |
| |
Boolean existsQualifier(const String& name) const |
|
{ |
|
return ((_qualifiers.find(name) != PEG_NOT_FOUND) ? true : false); |
|
} |
|
|
|
CIMQualifier getQualifier(Uint32 pos) | CIMQualifier getQualifier(Uint32 pos) |
{ | { |
return _qualifiers.getQualifier(pos); | return _qualifiers.getQualifier(pos); |
|
|
return _qualifiers.getQualifier(pos); | return _qualifiers.getQualifier(pos); |
} | } |
| |
Boolean isTrueQualifer(String& name) const |
Boolean isTrueQualifer(CIMName& name) const |
{ | { |
return _qualifiers.isTrue(name); | return _qualifiers.isTrue(name); |
} | } |
|
|
| |
virtual void addProperty(const CIMProperty& x); | virtual void addProperty(const CIMProperty& x); |
| |
Uint32 findProperty(const String& name) const; |
Uint32 findProperty(const CIMName& name) const; |
|
|
Boolean existsProperty(const String& name) const; |
|
| |
CIMProperty getProperty(Uint32 pos); | CIMProperty getProperty(Uint32 pos); |
| |
|
|
// not implicitly define a default copy constructor. | // not implicitly define a default copy constructor. |
CIMObjectRep& operator=(const CIMObjectRep& x) | CIMObjectRep& operator=(const CIMObjectRep& x) |
{ | { |
PEGASUS_ASSERT(0); |
//PEGASUS_ASSERT(0); |
return *this; | return *this; |
} | } |
| |