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;
133 const char* pszName =
"");
156 const std::string &Name)
const;
165 std::vector<std::string>
GetAllStartWith(
char** papszStrList,
const char *pszName)
const;
172 char** m_MetadataDic =
nullptr;
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
#define otbGenericExceptionMacro(T, x)