MeVisLab Toolbox Reference
mlDICOMTreeDumpTools.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
5
10//----------------------------------------------------------------------------------
11#pragma once
12
13#include "MLDICOMTagsSystem.h"
14
15#include <FMEThirdPartyWarningsDisable.h>
16#include <string>
17#include <FMEThirdPartyWarningsRestore.h>
18
19#include <mlUtilsSystem.h>
20
21// DICOM tree prototypes.
22#include <DCMTree_Lib.h>
23
25
26//----------------------------------------------------------------------------------
28//----------------------------------------------------------------------------------
29namespace DICOMTagTools {
30
31//-------------------------------------------------------------------------------------
59 const std::string &prefix="",
60 MLint maxNum = 50000,
61 bool decodePrivateTags=false,
62 unsigned int numBinDumpEntries=8,
63 bool annotate=false,
64 const std::string &regExLineFilter="",
65 bool showNumOfTagValues=true,
66 bool hideNULLItems=false);
67
74MLDICOMTags_EXPORT void appendHexDumpToString(const unsigned char *dataPtr,
75 const unsigned int numDataBytes,
76 std::string &resultValStr,
77 bool printSpaces);
78};
79
Project global and OS specific declarations.
#define MLDICOMTags_EXPORT
If included by external modules, exported symbols are declared as import symbols.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Definition mlTypeDefs.h:490
boost::shared_ptr< const Tree > Const_TreePtr
Definition DCMTree_Lib.h:73
MLDICOMTags_EXPORT std::string dumpDCMTreeToReadableString(DCMTree::Const_TreePtr treePtr, const std::string &prefix="", MLint maxNum=50000, bool decodePrivateTags=false, unsigned int numBinDumpEntries=8, bool annotate=false, const std::string &regExLineFilter="", bool showNumOfTagValues=true, bool hideNULLItems=false)
Creates a string from the DicomTree tags and updates the information field.
MLDICOMTags_EXPORT void appendHexDumpToString(const unsigned char *dataPtr, const unsigned int numDataBytes, std::string &resultValStr, bool printSpaces)
Appends hexadecimal dump of numDataBytes bytes to tagValStr.