version 1.7, 2008/12/02 09:00:42
|
version 1.10, 2011/01/07 02:17:20
|
|
|
#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 |
|
|
| |
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; |
| |
|
|
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 |