OTB  9.0.0
Orfeo Toolbox
Macros | Typedefs | Functions | Variables
otbTestMain.h File Reference
#include "otbConfigure.h"
#include "otbConfigurationManager.h"
#include <map>
#include <string>
#include "itkMultiThreader.h"
#include "otbMacro.h"
#include "otbOGRDriversInit.h"
#include "otbTestHelper.h"
#include "otbImageFileReaderException.h"
#include "itkMersenneTwisterRandomVariateGenerator.h"
+ Include dependency graph for otbTestMain.h:

Go to the source code of this file.

Macros

#define REGISTER_TEST(test)
 

Typedefs

typedef int(* MainFuncPointer) (int, char *[])
 

Functions

void LoadTestEnv ()
 
void PrintAvailableTests ()
 
void RegisterTests ()
 
bool CheckOption (char *arg, const char *token, int ac, int min)
 
int main (int ac, char *av[])
 

Variables

std::map< std::string, MainFuncPointerStringToTestFunctionMap
 

Macro Definition Documentation

◆ REGISTER_TEST

#define REGISTER_TEST (   test)
Value:
extern int test(int, char* []); \
StringToTestFunctionMap[#test] = test

Definition at line 42 of file otbTestMain.h.

Typedef Documentation

◆ MainFuncPointer

typedef int(* MainFuncPointer) (int, char *[])

Definition at line 39 of file otbTestMain.h.

Function Documentation

◆ CheckOption()

bool CheckOption ( char *  arg,
const char *  token,
int  ac,
int  min 
)

CheckOption, utility function to test the presence of a given token in the argument list. The function also checks if there are at least 'min' arguments left to parse the token (token included)

Definition at line 71 of file otbTestMain.h.

Referenced by main().

◆ LoadTestEnv()

void LoadTestEnv ( )

Definition at line 61 of file otbTestMain.h.

Referenced by main().

◆ main()

int main ( int  ac,
char *  av[] 
)

◆ PrintAvailableTests()

void PrintAvailableTests ( )

Definition at line 47 of file otbTestMain.h.

References StringToTestFunctionMap.

Referenced by main().

◆ RegisterTests()

void RegisterTests ( )

Referenced by main().

Variable Documentation

◆ StringToTestFunctionMap

std::map<std::string, MainFuncPointer> StringToTestFunctionMap

Definition at line 40 of file otbTestMain.h.

Referenced by main(), and PrintAvailableTests().