PhoenixLecture  2.0.0
Set of tools to make lectures
main.cpp File Reference
#include "phoenix_assert.h"
#include "phoenix_check.h"
#include "OptionType.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

void isOptionTypeCompatible ()
 Test the option type compatible. More...
 
int main (int argc, char **argv)
 
void testOptionType ()
 Test the option type. More...
 

Function Documentation

◆ isOptionTypeCompatible()

void isOptionTypeCompatible ( )

Test the option type compatible.

Definition at line 13 of file main.cpp.

References OptionType::CHAR, OptionType::FILE_OR_DIR, OptionType::FLOAT, phoenix_assert, OptionType::SHORT, and OptionType::STRING.

Referenced by main().

+ Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 62 of file main.cpp.

62  {
65  return 0;
66 }
void testOptionType()
Test the option type.
Definition: main.cpp:21

References isOptionTypeCompatible(), and testOptionType().

+ Here is the call graph for this function:

◆ testOptionType()

void testOptionType ( )

Test the option type.

Definition at line 21 of file main.cpp.

21  {
31  phoenix_assert(getOptionTypeFromType<std::string>() == OptionType::STRING);
60 }
OptionType::OptionType getOptionTypeFromType< unsigned short >()
Definition: OptionType.cpp:123
OptionType::OptionType getOptionTypeFromType< long >()
Definition: OptionType.cpp:119
OptionType::OptionType getOptionTypeFromType< unsigned int >()
Definition: OptionType.cpp:125
bool isOptionSignedInteger(OptionType::OptionType type)
Say if the option type is a signed integer.
Definition: OptionType.cpp:13
bool isOptionStringFileDir(OptionType::OptionType type)
Say if the option is a filename, a drectory, both or a string.
Definition: OptionType.cpp:45
OptionType::OptionType getOptionTypeFromType< unsigned char >()
Definition: OptionType.cpp:121
OptionType::OptionType getOptionTypeFromType< unsigned long >()
Definition: OptionType.cpp:127
PString convertOptionTypeToString(OptionType::OptionType type)
Convert the OptionType into PString.
Definition: OptionType.cpp:69
OptionType::OptionType getOptionTypeFromType< float >()
Definition: OptionType.cpp:129
OptionType::OptionType getOptionTypeFromType< short >()
Definition: OptionType.cpp:115
OptionType::OptionType getOptionTypeFromType< bool >()
Definition: OptionType.cpp:111
OptionType::OptionType getOptionTypeFromType< char >()
Definition: OptionType.cpp:113
bool isOptionUnsignedInteger(OptionType::OptionType type)
Say if the option type is an unsigned integer.
Definition: OptionType.cpp:21
bool isOptionInteger(OptionType::OptionType type)
Say if the option type is an integer.
Definition: OptionType.cpp:29
bool isOptionFloatingPoint(OptionType::OptionType type)
Say if the option type is a floating point.
Definition: OptionType.cpp:37
OptionType::OptionType getOptionTypeFromType< int >()
Definition: OptionType.cpp:117
OptionType::OptionType getOptionTypeFromType< double >()
Definition: OptionType.cpp:131

References OptionType::BOOL, OptionType::CHAR, convertOptionTypeToString(), OptionType::DIRECTORY, OptionType::DOUBLE, OptionType::FILE_OR_DIR, OptionType::FILENAME, OptionType::FLOAT, getOptionTypeFromType< bool >(), getOptionTypeFromType< char >(), getOptionTypeFromType< double >(), getOptionTypeFromType< float >(), getOptionTypeFromType< int >(), getOptionTypeFromType< long >(), getOptionTypeFromType< short >(), getOptionTypeFromType< unsigned char >(), getOptionTypeFromType< unsigned int >(), getOptionTypeFromType< unsigned long >(), getOptionTypeFromType< unsigned short >(), OptionType::INT, isOptionFloatingPoint(), isOptionInteger(), isOptionSignedInteger(), isOptionStringFileDir(), isOptionUnsignedInteger(), OptionType::LONG, OptionType::NONE, phoenix_assert, OptionType::SHORT, OptionType::STRING, OptionType::UCHAR, OptionType::UINT, OptionType::ULONG, and OptionType::USHORT.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: