14 #ifndef GDCMPRESENTATIONDATAVALUE_H
15 #define GDCMPRESENTATIONDATAVALUE_H
36 std::istream &Read(std::istream &is);
37 std::istream &ReadInto(std::istream &is, std::ostream &os);
39 const std::ostream &Write(std::ostream &os)
const;
46 void SetDataSet(
const DataSet & ds);
47 void SetBlob(
const std::string & partialblob);
48 const std::string &GetBlob()
const;
53 assert(
id % 2 == 1 );
54 PresentationContextID = id;
57 assert( MessageHeader <= 0x3 );
63 MessageHeader = messageheader;
64 assert( MessageHeader <= 0x3 );
68 void SetCommand(
bool inCommand);
69 void SetLastFragment(
bool inLast);
71 bool GetIsCommand()
const;
72 bool GetIsLastFragment()
const;
74 void Print(std::ostream &os)
const;
79 static DataSet ConcatenatePDVBlobs(
const std::vector<PresentationDataValue>& inPDVs);
83 uint8_t PresentationContextID;
84 uint8_t MessageHeader;
91 #endif //GDCMPRESENTATIONDATAVALUE_H