SourceXtractorPlusPlus  0.11
Please provide a description of the project.
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>
23 
24 namespace SourceXtractor {
25 
26 struct MetadataEntry {
27  typedef boost::variant<bool, char, int64_t, double, std::string> value_t;
28 
30 
33 };
34 
39 template <typename 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_ */
boost::variant< bool, char, int64_t, double, std::string > value_t
std::map< std::string, std::string > m_extra
Additional metadata about the entry: i.e. comments.
virtual const std::map< std::string, MetadataEntry > & getMetadata() const =0