65 lines
1.9 KiB
C++
65 lines
1.9 KiB
C++
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (C) 2007 Intel Corporation
|
|
//
|
|
// File: WsmanIdentifier.h
|
|
//
|
|
// Contents: C++ representation of WSMAN Identifiction Response
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __WSMAN_IDENTIFIER_H
|
|
#define __WSMAN_IDENTIFIER_H
|
|
|
|
#include <map>
|
|
#include "Deserializable.h"
|
|
|
|
using namespace std;
|
|
|
|
static const char* PROTOCOL_VERSION = "ProtocolVersion";
|
|
static const char* PRODUCT_VENDOR = "ProductVendor";
|
|
static const char* PRODUCT_VERSION = "ProductVersion";
|
|
static const char* DASH_VERSION = "DASHVersion";
|
|
static const char* SECURITY_PROFILES = "SecurityProfiles";
|
|
static const char* SECURITY_PROFILE_NAME = "SecurityProfileName";
|
|
|
|
static const unsigned short AMT_PREFIX_LENGTH = 4;
|
|
|
|
namespace CimClassNamespace
|
|
{
|
|
|
|
class SecurityProfileNames : public DeSerializable
|
|
{
|
|
private:
|
|
vector<string> securityProfileNames;
|
|
virtual void SetValue(const XMLElement& elem);
|
|
virtual void ClearValues();
|
|
public:
|
|
SecurityProfileNames():DeSerializable("SecurityProfileNames"){}
|
|
virtual ~SecurityProfileNames() {}
|
|
void ClearSecurityProfileNames();
|
|
vector<string> GetSecurityProfileNames() const {return securityProfileNames;}
|
|
};
|
|
|
|
class WsmanIdentifier : public DeSerializable
|
|
{
|
|
private:
|
|
string protocolVersion;
|
|
string productVendor;
|
|
string productVersion;
|
|
string dashVersion;
|
|
SecurityProfileNames securityProfileNames;
|
|
virtual void SetValue(const XMLElement& elem);
|
|
virtual void ClearValues();
|
|
|
|
public:
|
|
WsmanIdentifier(string data);
|
|
virtual ~WsmanIdentifier() {}
|
|
string GetProtocolVersion() const {return protocolVersion;}
|
|
string GetProductVendor() const {return productVendor;}
|
|
string GetProductVersion() const {return productVersion;}
|
|
string GetDashVersion() const {return dashVersion;}
|
|
vector<string> GetSecurityProfileNames() const;
|
|
};
|
|
} //CimClassNamespace
|
|
#endif
|