OTB
9.0.0
Orfeo Toolbox
|
#include <otbOGRHelpers.h>
Public Member Functions | |
template<class ContainerType > | |
StringListConverter (ContainerType const &strings) | |
char ** | to_ogr () const |
Private Attributes | |
std::vector< char const * > | m_raw |
Helper class to convert a set of standard C++ string into char**
as OGR API expects.
Usage:
DataSource
constructor receive a std::vector<std::string>
, or even more precide types. Definition at line 73 of file otbOGRHelpers.h.
|
inlineexplicit |
Init constructor.
ContainerType | Any container matching C++ convention for standard containers (have a value_type , begin() , end() ). |
[in] | strings | list of strings to convert |
std::bad_alloc | Prepares m_raw with to contain a list of strings that can be seen as a 0-terminated array of char* . |
Definition at line 88 of file otbOGRHelpers.h.
|
inline |
Access to the OGR compliant list of strings.
Definition at line 103 of file otbOGRHelpers.h.
Referenced by otb::OGRDataSourceToLabelImageFilter< TOutputImage >::GenerateData().
|
private |
Definition at line 109 of file otbOGRHelpers.h.