26 #ifndef __METADATA_HH__
27 #define __METADATA_HH__
28 #include "bias_config.h"
30 #include <Base/Common/BIASpragmaStart.hh>
72 enum TAppData {MD_PMatrix=0, MD_Orientation=1, MD_TimeStamp=2,
73 MD_PTU_Data=3, MD_Inertial_Sensor=4, MD_ASCII_DATA=5,
74 MD_RMatrix=6, MD_KMatrix=7, MD_CVector=8, MD_HomgPoint2D=9,
75 MD_Invalid=10, MD_UUID=11, MD_USE_ASCII=12,
76 MD_Focal_Length=14, MD_GPS_Data=15, MD_Projection = 16,
77 MD_RefUUID=17, MD_PMD_DataDesc=18};
121 class BIASImageBase_EXPORT
MetaData :
public std::vector<AppData>
131 std::vector<AppData>::operator=(M);
147 void Add(
const std::string &tag,
const std::string& data);
164 int Find(
const std::string &tag,
AppData &data)
const;
175 void Delete(
const std::string &tag);
179 std::ostream &WriteBinary(std::ostream& os)
const;
182 std::ostream &WriteAscii(std::ostream& os)
const;
185 void Dump(std::ostream& os=std::cout);
191 BIASImageBase_EXPORT std::istream&
operator>>(std::istream& is, MetaData& md);
195 BIASImageBase_EXPORT std::ostream&
operator<<(std::ostream& is,
const MetaData& md);
200 #include <Base/Common/BIASpragmaEnd.hh>
std::string stag
the tag as given in ascii meta data
int length
number of bytes used by the data block
std::string sdata
the data as given in ascii meta data
char * data
pointer to block of data
std::ostream & operator<<(std::ostream &os, const Array2D< T > &arg)
BIASCommon_EXPORT std::istream & operator>>(std::istream &is, BIAS::TimeStamp &ts)
Standard input operator for TimeStamps.
this is a chunk of metadata, also see MetaData