version 1.18, 2001/12/22 02:15:15
|
version 1.30, 2002/07/26 20:01:19
|
|
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
// | // |
// 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) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/CIMObjectRep.h> | #include <Pegasus/Common/CIMObjectRep.h> |
#include <Pegasus/Common/CIMMethod.h> | #include <Pegasus/Common/CIMMethod.h> |
|
#include <Pegasus/Common/Linkage.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
class CIMConstClass; | class CIMConstClass; |
class CIMInstanceRep; | class CIMInstanceRep; |
| |
|
// ATTN: KS P3 -document the CIMClass and CIMObjectRep classes. |
|
|
class PEGASUS_COMMON_LINKAGE CIMClassRep : public CIMObjectRep | class PEGASUS_COMMON_LINKAGE CIMClassRep : public CIMObjectRep |
{ | { |
public: | public: |
| |
CIMClassRep( | CIMClassRep( |
const String& className, |
const CIMObjectPath& reference, |
const String& superClassName); | const String& superClassName); |
| |
virtual ~CIMClassRep(); | virtual ~CIMClassRep(); |
|
|
| |
Boolean isAbstract() const; | Boolean isAbstract() const; |
| |
|
Boolean isTrueQualifier(const String& name) const; |
|
|
const String& getSuperClassName() const { return _superClassName; } | const String& getSuperClassName() const { return _superClassName; } |
| |
void setSuperClassName(const String& superClassName); | void setSuperClassName(const String& superClassName); |
|
|
| |
void addMethod(const CIMMethod& x); | void addMethod(const CIMMethod& x); |
| |
Uint32 findMethod(const String& name); |
Uint32 findMethod(const String& name) const; |
|
|
Uint32 findMethod(const String& name) const |
|
{ |
|
return ((CIMClassRep*)this)->findMethod(name); |
|
} |
|
|
|
Boolean existsMethod(const String& name); |
|
|
|
Boolean existsMethod(const String& name) const |
|
{ |
|
return ((CIMClassRep*)this)->existsMethod(name); |
|
} |
|
| |
CIMMethod getMethod(Uint32 pos); | CIMMethod getMethod(Uint32 pos); |
| |
|
|
DeclContext* context, | DeclContext* context, |
const String& nameSpace); | const String& nameSpace); |
| |
Boolean identical(const CIMClassRep* x) const; |
virtual Boolean identical(const CIMObjectRep* x) const; |
| |
void toXml(Array<Sint8>& out) const; | void toXml(Array<Sint8>& out) const; |
| |
void print(PEGASUS_STD(ostream)& os = PEGASUS_STD(cout)) const; |
|
|
|
void toMof(Array<Sint8>& out) const; | void toMof(Array<Sint8>& out) const; |
| |
void printMof(PEGASUS_STD(ostream)& os = PEGASUS_STD(cout)) const; |
|
|
|
virtual CIMObjectRep* clone() const | virtual CIMObjectRep* clone() const |
{ | { |
return new CIMClassRep(*this); | return new CIMClassRep(*this); |
|
|
| |
CIMClassRep(const CIMClassRep& x); | CIMClassRep(const CIMClassRep& x); |
| |
|
// This method is declared and made private so that the compiler does |
|
// not implicitly define a default copy constructor. |
CIMClassRep& operator=(const CIMClassRep& x) | CIMClassRep& operator=(const CIMClassRep& x) |
{ | { |
|
//PEGASUS_ASSERT(0); |
return *this; | return *this; |
} | } |
| |