21 #ifndef otbXMLMetadataSupplier_h
22 #define otbXMLMetadataSupplier_h
24 #include "cpl_minixml.h"
25 #include "cpl_string.h"
27 #include "OTBMetadataExport.h"
57 std::string
GetMetadataValue(std::string
const& path,
bool& hasValue,
int band=1)
const override;
83 template <
typename T> T
GetFirstAs(std::string
const& path)
const
86 std::string ret = GetFirstMetadataValue(path, hasValue);
93 return boost::lexical_cast<T>(ret);
95 catch (boost::bad_lexical_cast&)
110 unsigned int GetAttributeId(std::string
const& path, std::string
const& value)
const override;
123 const char *pszValue);
126 std::map<std::string, int>& oMapCountKeysFull,
127 const std::string& osPrefixFull);
130 const std::map<std::string, int>& oMapCountKeysFullRef,
131 std::map<std::string, int>& oMapCountKeysFull,
132 std::map<std::string, int>& oMapCountKeys,
133 const std::string& osPrefix,
134 const std::string& osPrefixFull);
148 const char* pszName =
"");
171 const std::string &Name)
const;
180 std::vector<std::string>
GetAllStartWith(
char** papszStrList,
const char *pszName)
const;
187 char** m_MetadataDic =
nullptr;
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
#define otbGenericExceptionMacro(T, x)