MeVisLab Toolbox Reference
mlDMTagGroup.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 
12 #pragma once
13 
14 #include "MLDMFileReaderSystem.h"
15 
17 #include <mlDMFileReaderDefs.h>
18 
19 ML_START_NAMESPACE
20 
21 //----------------------------------------------------------------------------------
23 //----------------------------------------------------------------------------------
25  public:
28  MLuint64 originPosition);
29 
31  bool isSorted() const;
32 
34  bool isOpen() const;
35 
38 
40  const DMTagPtrVector &getTagEntries() const;
41 
44 
55  std::string getAsString(std::string prefix="",
56  const std::string &sep=", ",
57  const std::string &label="",
58  const size_t maxNumBinaryEntries=8,
59  const size_t maxNumStringEntries=20) const;
60 
61  private:
63  DMTagGroup &operator=(const DMTagGroup &);
64 
66  DMTagGroup(const DMTagGroup &);
67 
69  DMFileReader &_reader;
70 
72  MLuint64 _originPosition;
73 
75  mutable DMTagPtrVector _tags;
76 };
77 
79 MLDMFileReader_EXPORT std::ostream& operator<<(std::ostream& os, const DMTagGroup &obj);
80 
81 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDMFileReader_EXPORT
If included by external modules, exported symbols are declared as import symbols.
A tool classes to load Digital Microscopy files.
Representation for the DM file as data structure.
Definition: mlDMTagGroup.h:24
DMTagGroup(DMFileReader &reader, MLuint64 originPosition)
Constructor initializing itself with settings from the reader.
const DMTagPtrVector & getTagEntries() const
Returns the vector of pointers to TagEntries.
bool isSorted() const
Returns 1 if the tag group is sorted, otherwise 0.
bool isOpen() const
Returns 1 if the tag group is open, otherwise 0.
std::string getAsString(std::string prefix="", const std::string &sep=", ", const std::string &label="", const size_t maxNumBinaryEntries=8, const size_t maxNumStringEntries=20) const
Convert content to a human readable string with the prefix prefix before all lines and separator sep ...
MLuint64 getPositionAfterGroup() const
Returns the file position after the end of the structure or 0 on failure.
MLuint64 getNumberOfTags() const
Returns the number of tags in this tag group.
Project wide definitions.
UINT64 MLuint64
Introduce platform independent 64 bit unsigned integer type.
Definition: mlTypeDefs.h:513
MLDMFileReader_EXPORT std::ostream & operator<<(std::ostream &os, const DMTagGroup &obj)
Output to std::ostream.
std::vector< DMTagPtr > DMTagPtrVector
Vector of shared pointers to DMTags.