Added: #1440 Serial function for class id

--HG--
branch : build_pipeline_v3
hg/feature/build_pipeline_v3
kaetemi 13 years ago
parent 4b1a310dfb
commit a90d76361c

@ -23,6 +23,7 @@
namespace NLMISC namespace NLMISC
{ {
class IStream;
// *************************************************************************** // ***************************************************************************
/** /**
@ -56,6 +57,8 @@ public:
inline uint32 b() const { return (uint32)(Uid & 0xFFFFFFFFL); } inline uint32 b() const { return (uint32)(Uid & 0xFFFFFFFFL); }
inline void setA(uint32 a) { Uid = ((uint64)a<<32) | (Uid & 0xFFFFFFFFL); } inline void setA(uint32 a) { Uid = ((uint64)a<<32) | (Uid & 0xFFFFFFFFL); }
inline void setB(uint32 b) { Uid = (Uid & 0xFFFFFFFF00000000L) | b; } inline void setB(uint32 b) { Uid = (Uid & 0xFFFFFFFF00000000L) | b; }
void serial(NLMISC::IStream &s);
}; };
/** /**

@ -18,7 +18,7 @@
#include "nel/misc/class_id.h" #include "nel/misc/class_id.h"
#include "nel/misc/stream.h"
namespace NLMISC namespace NLMISC
@ -27,6 +27,11 @@ namespace NLMISC
const CClassId CClassId::Null(0); const CClassId CClassId::Null(0);
void CClassId::serial(NLMISC::IStream &s)
{
s.serial(Uid);
}
} }

Loading…
Cancel
Save