further implementing

This commit is contained in:
jriegel
2014-12-13 11:58:58 +01:00
committed by Stefan Tröger
parent 5a4c14ecc1
commit 6a26cbc2a1
7 changed files with 74 additions and 10 deletions

View File

@@ -23,7 +23,8 @@
#ifndef GUID_HEADER
#define GUID_HEADER
#include <istream>
#include <iostream>
#include <sstream>
#include <stdint.h>
#include "U8.h"
@@ -62,6 +63,12 @@ struct GUID
_C8.read(cont);
}
std::string toString()const{
std::stringstream strm;
strm << "{" << std::hex << _A1 << "-" << _B1 << _B2 << "-" << _C1 << _C2 << _C3 << _C4 << _C5 << _C6 << _C7 << _C8 << "}";
return strm.str();
}
U32 _A1;
U16 _B1;