version 1.62, 2005/02/05 22:59:23
|
version 1.63, 2005/02/25 04:22:09
|
|
|
#include <Pegasus/Common/StatisticalData.h> | #include <Pegasus/Common/StatisticalData.h> |
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.h> |
#include <Pegasus/Common/CIMDateTime.h> | #include <Pegasus/Common/CIMDateTime.h> |
|
#include <Pegasus/Common/CIMOperationType.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
| |
void setHttpMethod(HttpMethod httpMethod) {_httpMethod = httpMethod;} | void setHttpMethod(HttpMethod httpMethod) {_httpMethod = httpMethod;} |
| |
|
|
#ifndef PEGASUS_DISABLE_PERFINST | #ifndef PEGASUS_DISABLE_PERFINST |
// | // |
// Needed for performance measurement | // Needed for performance measurement |
|
|
return ret; | return ret; |
} | } |
| |
|
static CIMOperationType convertMessageTypetoCIMOpType(const Uint32 type) |
|
{ |
|
Uint32 in_type, enum_type; |
|
CIMOperationType cT; |
|
|
|
|
|
in_type = type%40; /* groups request/response message by type ie. getClassRequestMessage |
|
(type = 1) gives the same result as getClassResponseMessage (type = 41)*/ |
|
|
|
if (in_type < 3) { |
|
enum_type = in_type; |
|
} |
|
else if((3 < in_type) && (in_type < 25)){ |
|
enum_type = in_type -1; |
|
} |
|
else if (in_type == 25) { |
|
enum_type = 0; |
|
} |
|
else{ |
|
return ((CIMOperationType)40); //error condition |
|
} |
|
|
|
cT = (CIMOperationType)enum_type; |
|
return cT; |
|
} |
|
|
|
|
virtual void print( | virtual void print( |
PEGASUS_STD(ostream)& os, | PEGASUS_STD(ostream)& os, |
Boolean printHeader = true) const; | Boolean printHeader = true) const; |