version 1.26, 2002/08/17 00:59:36
|
version 1.36, 2007/10/23 17:42:56
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// 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. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec 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 |
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) |
|
// |
|
// Modified By: Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_MethodRep_h | #ifndef Pegasus_MethodRep_h |
|
|
class CIMConstMethod; | class CIMConstMethod; |
class DeclContext; | class DeclContext; |
| |
class PEGASUS_COMMON_LINKAGE CIMMethodRep : public Sharable |
class CIMMethodRep : public Sharable |
{ | { |
public: | public: |
| |
|
|
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 findParameter(const CIMName& name) const; | Uint32 findParameter(const CIMName& name) const; |
| |
CIMParameter getParameter(Uint32 pos); |
CIMParameter getParameter(Uint32 index); |
| |
CIMConstParameter getParameter(Uint32 pos) const |
CIMConstParameter getParameter(Uint32 index) const |
{ | { |
return ((CIMMethodRep*)this)->getParameter(pos); |
return ((CIMMethodRep*)this)->getParameter(index); |
} | } |
| |
void removeParameter (Uint32 pos); |
void removeParameter (Uint32 index); |
| |
Uint32 getParameterCount() const; | Uint32 getParameterCount() const; |
| |
|
|
DeclContext* declContext, | DeclContext* declContext, |
const CIMNamespaceName& nameSpace); | const CIMNamespaceName& nameSpace); |
| |
void toXml(Array<Sint8>& out) const; |
void toXml(Buffer& out) const; |
| |
void toMof(Array<Sint8>& out) const; |
void toMof(Buffer& out) const; |
| |
Boolean identical(const CIMMethodRep* x) const; | Boolean identical(const CIMMethodRep* x) const; |
| |
|
|
| |
private: | private: |
| |
CIMMethodRep(); |
|
|
|
CIMMethodRep(const CIMMethodRep& x); | CIMMethodRep(const CIMMethodRep& x); |
| |
// This method is declared and made private so that the compiler does |
CIMMethodRep(); // Unimplemented |
// not implicitly define a default copy constructor. |
CIMMethodRep& operator=(const CIMMethodRep& x); // Unimplemented |
CIMMethodRep& operator=(const CIMMethodRep& x) |
|
{ |
|
//PEGASUS_ASSERT(0); |
|
return *this; |
|
} |
|
| |
CIMName _name; | CIMName _name; |
CIMType _type; | CIMType _type; |