version 1.22, 2002/05/15 10:34:28
|
version 1.27, 2002/07/19 23:40:13
|
|
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
// | // |
// 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: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) | // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
|
// Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
class CIMConstMethod; | class CIMConstMethod; |
class CIMMethodRep; | class CIMMethodRep; |
| |
|
// ATTN: remove the classOrigin and propagated parameters. |
/** Class CIMMethod - This class defines the operations associated with | /** Class CIMMethod - This class defines the operations associated with |
manipulation of the Pegasus implementation of the CIM CIMMethod. Within | manipulation of the Pegasus implementation of the CIM CIMMethod. Within |
this class, methods are provides for creation, deletion, and manipulation | this class, methods are provides for creation, deletion, and manipulation |
of method declarations. | of method declarations. |
|
|
// ATTN: remove the classOrigin and propagated parameters. |
|
*/ | */ |
class PEGASUS_COMMON_LINKAGE CIMMethod | class PEGASUS_COMMON_LINKAGE CIMMethod |
{ | { |
|
|
| |
/** Creates a CIM method with the specified name, type, and classOrigin | /** Creates a CIM method with the specified name, type, and classOrigin |
@param name for the method | @param name for the method |
@param type ATTN |
@param type CIM data type of method to create |
@param classOrigin | @param classOrigin |
@param propagated | @param propagated |
@return Throws IllegalName if name argument not legal CIM identifier. | @return Throws IllegalName if name argument not legal CIM identifier. |
|
|
*/ | */ |
Uint32 findQualifier(const String& name) const; | Uint32 findQualifier(const String& name) const; |
| |
/** existsQualifier - returns the position of the qualifier with |
|
the given name. |
|
@param name Name of qualifier to be found. |
|
@return index of the parameter if found; otherwise PEG_NOT_FOUND. |
|
*/ |
|
Boolean existsQualifier(const String& name) const; |
|
|
|
/** getQualifier - Gets the CIMQualifier defined by the index | /** getQualifier - Gets the CIMQualifier defined by the index |
input as a parameter. | input as a parameter. |
@param Index of the qualifier requested. | @param Index of the qualifier requested. |
|
|
*/ | */ |
Uint32 findParameter(const String& name) const; | Uint32 findParameter(const String& name) const; |
| |
/** getParameter - ATTN: */ |
|
CIMParameter getParameter(Uint32 pos); |
|
|
|
/** getParameter - Gets the parameter defined by the index | /** getParameter - Gets the parameter defined by the index |
input as a parameter. | input as a parameter. |
@param index for the parameter to be returned. | @param index for the parameter to be returned. |
|
|
@Exception OutOfBounds exception is thrown if the index is outside the | @Exception OutOfBounds exception is thrown if the index is outside the |
range of available parameters | range of available parameters |
*/ | */ |
|
CIMParameter getParameter(Uint32 pos); |
|
|
|
/** getParameter - const form */ |
CIMConstParameter getParameter(Uint32 pos) const; | CIMConstParameter getParameter(Uint32 pos) const; |
| |
/** getParameterCount - Gets the count of the numbeer of | /** getParameterCount - Gets the count of the numbeer of |
|
|
Boolean isNull() const; | Boolean isNull() const; |
#endif | #endif |
| |
/** toMof - puts MOF encoding of this object into out arguemnt. |
|
*/ |
|
void toMof(Array<Sint8>& out) const; |
|
|
|
/** identical - Returns true if this method is identical to the | /** identical - Returns true if this method is identical to the |
one given by the argument x. | one given by the argument x. |
*/ | */ |
|
|
CIMMethodRep* _rep; | CIMMethodRep* _rep; |
friend class CIMConstMethod; | friend class CIMConstMethod; |
friend class XmlWriter; | friend class XmlWriter; |
|
friend class MofWriter; |
}; | }; |
| |
class PEGASUS_COMMON_LINKAGE CIMConstMethod | class PEGASUS_COMMON_LINKAGE CIMConstMethod |
|
|
friend class CIMMethod; | friend class CIMMethod; |
friend class CIMMethodRep; | friend class CIMMethodRep; |
friend class XmlWriter; | friend class XmlWriter; |
|
friend class MofWriter; |
}; | }; |
| |
#define PEGASUS_ARRAY_T CIMMethod | #define PEGASUS_ARRAY_T CIMMethod |
# include "ArrayInter.h" |
# include <Pegasus/Common/ArrayInter.h> |
#undef PEGASUS_ARRAY_T | #undef PEGASUS_ARRAY_T |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |