(file) Return to CIMResponseData.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CIMResponseData.h between version 1.3.2.13 and 1.9

version 1.3.2.13, 2009/11/30 10:59:36 version 1.9, 2012/08/08 08:27:59
Line 66 
Line 66 
         RESP_OBJECTS = 4,         RESP_OBJECTS = 4,
         RESP_OBJECTPATHS = 5         RESP_OBJECTPATHS = 5
     };     };
       //includeClassOrigin & _includeQualifiers are set to true by default.
       //_propertyList is initialized to an empty propertylist to enable
       // sending all properties by default.
     CIMResponseData(ResponseDataContent content):     CIMResponseData(ResponseDataContent content):
         _encoding(0),_dataType(content)          _encoding(0),_dataType(content),_includeQualifiers(true),
     {};          _includeClassOrigin(true),_propertyList(CIMPropertyList())
       {
       }
  
       CIMResponseData(const CIMResponseData & x):
           _encoding(x._encoding),
           _dataType(x._dataType),
           _referencesData(x._referencesData),
           _instanceData(x._instanceData),
           _hostsData(x._hostsData),
           _nameSpacesData(x._nameSpacesData),
           _binaryData(x._binaryData),
           _defaultNamespace(x._defaultNamespace),
           _defaultHostname(x._defaultHostname),
           _instanceNames(x._instanceNames),
           _instances(x._instances),
           _objects(x._objects),
           _scmoInstances(x._scmoInstances),
           _includeQualifiers(x._includeQualifiers),
           _includeClassOrigin(x._includeClassOrigin),
           _propertyList(x._propertyList)
       {
       }
  
     ~CIMResponseData()     ~CIMResponseData()
     {     {
Line 136 
Line 159 
         _encoding |= RESP_ENC_SCMO;         _encoding |= RESP_ENC_SCMO;
     }     }
  
     // Binary data is just a data stream  
     Array<Uint8>& getBinary();     Array<Uint8>& getBinary();
     bool setBinary(CIMBuffer& in, bool hasLen=true);  
       // Set the binary stream in the CIMBuffer into the CIMResponseData
       bool setBinary(CIMBuffer& in);
   
       // Set any data from the CIMBuffer remaining after the current CIMBuffer
       // position pointer into the CIMResponseData Object.
       bool setRemainingBinaryData(CIMBuffer& in);
  
     // Xml data is unformatted, no need to differentiate between instance     // Xml data is unformatted, no need to differentiate between instance
     // instances and object paths or objects     // instances and object paths or objects
Line 168 
Line 196 
     // official Xml format(CIM over Http) used to communicate to clients     // official Xml format(CIM over Http) used to communicate to clients
     void encodeXmlResponse(Buffer& out);     void encodeXmlResponse(Buffer& out);
  
       //This function is called from buildResponce to set CIMResponcedata
       //with respective values of IncludeQualifiers,IncludeClassOrigin and
       //propertyFilter.
       void setRequestProperties(
           const Boolean includeQualifiers,
           const Boolean includeClassOrigin,
           const CIMPropertyList& propertyList);
   
       void setPropertyList(const CIMPropertyList& propertyList)
       {
           _propertyList = propertyList;
       }
       CIMPropertyList & getPropertyList()
       {
           return _propertyList;
       }
   
 private: private:
  
     // helper functions to transform different formats into one-another     // helper functions to transform different formats into one-another
Line 190 
Line 235 
     SCMOInstance _getSCMOFromCIMObject(const CIMObject& cimObj);     SCMOInstance _getSCMOFromCIMObject(const CIMObject& cimObj);
     SCMOInstance _getSCMOFromCIMObjectPath(const CIMObjectPath& cimPath);     SCMOInstance _getSCMOFromCIMObjectPath(const CIMObjectPath& cimPath);
     SCMOClass* _getSCMOClass(const char* ns,const char* cls);     SCMOClass* _getSCMOClass(const char* ns,const char* cls);
       void _deserializeInstance(Uint32 idx,CIMInstance& cimInstance);
       void _deserializeObject(Uint32 idx,CIMObject& cimObject);
       Boolean _deserializeReference(Uint32 idx,CIMObjectPath& cimObjectPath);
       Boolean _deserializeInstanceName(Uint32 idx,CIMObjectPath& cimObjectPath);
  
     // Bitflags in this integer will reflect what data representation types     // Bitflags in this integer will reflect what data representation types
     // are currently stored in this CIMResponseData object     // are currently stored in this CIMResponseData object
Line 222 
Line 271 
  
     // SCMO encoding     // SCMO encoding
     Array<SCMOInstance> _scmoInstances;     Array<SCMOInstance> _scmoInstances;
       Boolean _includeQualifiers;
       Boolean _includeClassOrigin;
       CIMPropertyList _propertyList;
  
 }; };
  


Legend:
Removed from v.1.3.2.13  
changed lines
  Added in v.1.9

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2