SourceXtractorPlusPlus
0.11
Please provide a description of the project.
SEFramework
SEFramework
Image
ImageSourceWithMetadata.h
Go to the documentation of this file.
1
18
#ifndef _SEFRAMEWORK_IMAGE_IMAGESOURCEWITHMETADATA_H_
19
#define _SEFRAMEWORK_IMAGE_IMAGESOURCEWITHMETADATA_H_
20
21
#include <boost/variant.hpp>
22
#include "
SEFramework/Image/ImageSource.h
"
23
24
namespace
SourceXtractor
{
25
26
struct
MetadataEntry
{
27
typedef
boost::variant<bool, char, int64_t, double, std::string>
value_t
;
28
29
value_t
m_value
;
30
32
std::map<std::string, std::string>
m_extra
;
33
};
34
39
template
<
typename
T>
40
class
ImageSourceWithMetadata
:
public
ImageSource
<T> {
41
public
:
47
virtual
~ImageSourceWithMetadata
() =
default
;
48
52
virtual
const
std::map<std::string, MetadataEntry>
&
getMetadata
()
const
= 0;
53
};
54
55
}
// end of namespace SourceXtractor
56
57
#endif
/* _SEFRAMEWORK_IMAGE_IMAGESOURCEWITHMETADATA_H_ */
ImageSource.h
SourceXtractor::MetadataEntry
Definition:
ImageSourceWithMetadata.h:26
SourceXtractor::MetadataEntry::value_t
boost::variant< bool, char, int64_t, double, std::string > value_t
Definition:
ImageSourceWithMetadata.h:27
SourceXtractor::MetadataEntry::m_value
value_t m_value
Definition:
ImageSourceWithMetadata.h:29
SourceXtractor::MetadataEntry::m_extra
std::map< std::string, std::string > m_extra
Additional metadata about the entry: i.e. comments.
Definition:
ImageSourceWithMetadata.h:32
SourceXtractor::ImageSourceWithMetadata::~ImageSourceWithMetadata
virtual ~ImageSourceWithMetadata()=default
std::map< std::string, std::string >
SourceXtractor::ImageSourceWithMetadata::getMetadata
virtual const std::map< std::string, MetadataEntry > & getMetadata() const =0
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::ImageSource
Definition:
ImageSource.h:41
SourceXtractor::ImageSourceWithMetadata
Definition:
ImageSourceWithMetadata.h:40
Generated by
1.8.14