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

Diff for /pegasus/src/Pegasus/Common/CIMBuffer.cpp between version 1.7 and 1.10

version 1.7, 2008/12/02 09:00:42 version 1.10, 2011/01/07 02:17:20
Line 46 
Line 46 
 #include "StringRep.h" #include "StringRep.h"
 #include "StringInline.h" #include "StringInline.h"
 #include "Buffer.h" #include "Buffer.h"
 #include "BinaryCodec.h"  #include "SCMOStreamer.h"
  
 #define INSTANCE_MAGIC 0xD6EF2219 #define INSTANCE_MAGIC 0xD6EF2219
 #define CLASS_MAGIC 0xA8D7DE41 #define CLASS_MAGIC 0xA8D7DE41
Line 267 
Line 267 
  
     if (_validate)     if (_validate)
     {     {
         // Get string without validation since we will validate namespace below.          // Get string without validation and validate namespace below.
  
         _validate = false;         _validate = false;
  
Line 1770 
Line 1770 
         putInstance(x[i], includeHostAndNamespace, includeKeyBindings);         putInstance(x[i], includeHostAndNamespace, includeKeyBindings);
 } }
  
   
   void CIMBuffer::putSCMOClass(const SCMOClass& scmoClass)
   {
       SCMOStreamer::serializeClass(*this, scmoClass);
   }
   
   bool CIMBuffer::getSCMOClass(SCMOClass& scmoClass)
   {
       return SCMOStreamer::deserializeClass(*this, scmoClass);
   }
   
   
   void CIMBuffer::putSCMOInstanceA(Array<SCMOInstance>& x)
   {
       Uint32 n = x.size();
       _grow(n<<13);
   
       putUint32(n);
   
   
       SCMOStreamer scmoStreamer(*this,x);
       scmoStreamer.serialize();
   }
   
   bool CIMBuffer::getSCMOInstanceA(Array<SCMOInstance>& x)
   {
       Uint32 n;
   
       if (!getUint32(n))
           return false;
   
       SCMOStreamer scmoStreamer(*this,x);
       return scmoStreamer.deserialize();
   }
   
   
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.7  
changed lines
  Added in v.1.10

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2