35 #include "dcmtk/config/osconfig.h"
37 #include "dcmtk/ofstd/ofglobal.h"
38 #include "dcmtk/dcmdata/dcerror.h"
39 #include "dcmtk/dcmdata/dcxfer.h"
40 #include "dcmtk/dcmdata/dctag.h"
41 #include "dcmtk/dcmdata/dcstack.h"
52 const Uint32 DCM_MaxReadLength = 4096;
55 const Uint32 DCM_TagInfoLength = 12;
58 const Uint32 DCM_OptPrintLineLength = 70;
61 const Uint32 DCM_OptPrintValueLength = 40;
64 const Uint32 DCM_OptPrintAttributeNameLength = 35;
229 virtual DcmEVR
ident()
const = 0;
254 virtual OFBool
isLeaf()
const = 0;
263 virtual void print(STD_NAMESPACE ostream &out,
264 const size_t flags = 0,
266 const char *pixelFileName = NULL,
267 size_t *pixelCounter = NULL) = 0;
317 virtual unsigned long getVM() = 0;
330 const E_EncodingType enctype) = 0;
339 virtual Uint32
getLength(
const E_TransferSyntax xfer = EXS_LittleEndianImplicit,
340 const E_EncodingType enctype = EET_UndefinedLength) = 0;
347 virtual OFBool
canWriteXfer(
const E_TransferSyntax newXfer,
348 const E_TransferSyntax oldXfer) = 0;
360 const E_TransferSyntax ixfer,
361 const E_GrpLenEncoding glenc = EGL_noChange,
362 const Uint32 maxReadLength = DCM_MaxReadLength) = 0;
372 const E_TransferSyntax oxfer,
373 const E_EncodingType enctype,
382 const size_t flags = 0);
392 const E_TransferSyntax oxfer,
393 const E_EncodingType enctype,
421 virtual OFBool
isEmpty(
const OFBool normalize = OFTrue);
462 const OFBool intoSub);
487 E_SearchMode mode = ESM_fromHere,
488 OFBool searchIntoSub = OFTrue);
542 const unsigned long printedLength = 0xffffffff ,
559 const char *info = NULL,
561 const OFBool isInfo = OFTrue);
572 const E_TransferSyntax oxfer);
581 const E_TransferSyntax oxfer,
582 Uint32 &writtenBytes)
const;
651 : dcmobj_(dcmobj), flags_(flags), level_(level)
687 static inline STD_NAMESPACE ostream& operator<<(STD_NAMESPACE ostream &stream,
DcmObject::PrintHelper obj)
689 obj.dcmobj_.
print(stream, obj.flags_, obj.level_);