OTB
9.0.0
Orfeo Toolbox
|
#include <otbWrapperDocExampleStructure.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef std::vector< ParametersVectorType > | ParametersVectorOfVectorType |
typedef std::vector< ParameterType > | ParametersVectorType |
typedef std::pair< std::string, std::string > | ParameterType |
typedef itk::SmartPointer< Self > | Pointer |
typedef DocExampleStructure | Self |
typedef itk::Object | Superclass |
Public Member Functions | |
unsigned int | AddExample (const std::string &comm="") |
void | AddParameter (const std::string &key, const std::string &name, unsigned int exId=0) |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
std::string | GenerateCLExample () |
std::string | GenerateCLExample (unsigned int exId) |
std::string | GenerateHtmlExample () |
std::string | GenerateHtmlExample (unsigned int exId) |
std::string | GetApplicationName () |
std::string | GetExampleComment (unsigned int i) |
std::vector< std::string > | GetExampleCommentList () |
virtual const char * | GetNameOfClass () const |
virtual unsigned int | GetNbOfExamples () |
unsigned int | GetNumberOfParameters (unsigned int exId=0) |
std::string | GetParameterKey (unsigned int i, unsigned int exId=0) |
ParametersVectorOfVectorType | GetParameterList () |
std::string | GetParameterValue (unsigned int i, unsigned int exId=0) |
void | SetApplicationName (const std::string &name) |
void | SetExampleComment (const std::string &comm, unsigned int i) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
DocExampleStructure () | |
~DocExampleStructure () override | |
Private Member Functions | |
DocExampleStructure (const DocExampleStructure &)=delete | |
void | operator= (const DocExampleStructure &)=delete |
Private Attributes | |
std::string | m_ApplicationName |
std::vector< std::string > | m_ExampleCommentList |
unsigned int | m_NbOfExamples |
ParametersVectorOfVectorType | m_ParameterList |
This class is a structure that gathered the necessary element to generate an example (for CommandLine, python ...). User has to set the application name, the binary path and a list of key/value couple.
Definition at line 46 of file otbWrapperDocExampleStructure.h.
typedef itk::SmartPointer<const Self> otb::Wrapper::DocExampleStructure::ConstPointer |
Definition at line 53 of file otbWrapperDocExampleStructure.h.
typedef std::vector<ParametersVectorType> otb::Wrapper::DocExampleStructure::ParametersVectorOfVectorType |
Definition at line 63 of file otbWrapperDocExampleStructure.h.
typedef std::vector<ParameterType> otb::Wrapper::DocExampleStructure::ParametersVectorType |
Definition at line 62 of file otbWrapperDocExampleStructure.h.
typedef std::pair<std::string, std::string> otb::Wrapper::DocExampleStructure::ParameterType |
Definition at line 59 of file otbWrapperDocExampleStructure.h.
typedef itk::SmartPointer<Self> otb::Wrapper::DocExampleStructure::Pointer |
Definition at line 52 of file otbWrapperDocExampleStructure.h.
Standard class typedefs
Definition at line 50 of file otbWrapperDocExampleStructure.h.
typedef itk::Object otb::Wrapper::DocExampleStructure::Superclass |
Definition at line 51 of file otbWrapperDocExampleStructure.h.
|
protected |
Constructor
|
overrideprotected |
Destructor
|
privatedelete |
unsigned int otb::Wrapper::DocExampleStructure::AddExample | ( | const std::string & | comm = "" | ) |
Add an example using comment. Return the index of the new example.
void otb::Wrapper::DocExampleStructure::AddParameter | ( | const std::string & | key, |
const std::string & | name, | ||
unsigned int | exId = 0 |
||
) |
virtual::itk::LightObject::Pointer otb::Wrapper::DocExampleStructure::CreateAnother | ( | void | ) | const |
std::string otb::Wrapper::DocExampleStructure::GenerateCLExample | ( | ) |
Generation of the documentation for CommandLine.
std::string otb::Wrapper::DocExampleStructure::GenerateCLExample | ( | unsigned int | exId | ) |
Generation of the documentation for CommandLine for one specific example.
std::string otb::Wrapper::DocExampleStructure::GenerateHtmlExample | ( | ) |
Generation of the documentation for Qt.
std::string otb::Wrapper::DocExampleStructure::GenerateHtmlExample | ( | unsigned int | exId | ) |
Generation of the documentation for Qt for one specific example.
std::string otb::Wrapper::DocExampleStructure::GetApplicationName | ( | ) |
Get Application name.
std::string otb::Wrapper::DocExampleStructure::GetExampleComment | ( | unsigned int | i | ) |
Get one example comment
std::vector<std::string> otb::Wrapper::DocExampleStructure::GetExampleCommentList | ( | ) |
Get the example comment list
|
virtual |
Runtime information
|
virtual |
Get the number of examples
unsigned int otb::Wrapper::DocExampleStructure::GetNumberOfParameters | ( | unsigned int | exId = 0 | ) |
Get number of parameters
std::string otb::Wrapper::DocExampleStructure::GetParameterKey | ( | unsigned int | i, |
unsigned int | exId = 0 |
||
) |
Get a specific parameter couple key.
ParametersVectorOfVectorType otb::Wrapper::DocExampleStructure::GetParameterList | ( | ) |
Get the parameter list.
std::string otb::Wrapper::DocExampleStructure::GetParameterValue | ( | unsigned int | i, |
unsigned int | exId = 0 |
||
) |
Get a specific parameter couple value as string.
|
static |
Standards macros
|
privatedelete |
void otb::Wrapper::DocExampleStructure::SetApplicationName | ( | const std::string & | name | ) |
Set Application name.
void otb::Wrapper::DocExampleStructure::SetExampleComment | ( | const std::string & | comm, |
unsigned int | i | ||
) |
Set one example comment
|
private |
Application name
Definition at line 132 of file otbWrapperDocExampleStructure.h.
|
private |
Example comments
Definition at line 135 of file otbWrapperDocExampleStructure.h.
|
private |
Stores the number of example.
Definition at line 138 of file otbWrapperDocExampleStructure.h.
|
private |
List of the application parameters. List of key/name/value couples.
Definition at line 129 of file otbWrapperDocExampleStructure.h.