![]() |
PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
|
#include "OptionType.h"
Go to the source code of this file.
PString convertOptionTypeToString | ( | OptionType::OptionType | type | ) |
Convert the OptionType into PString.
type | : OptionType to be converted |
Definition at line 69 of file OptionType.cpp.
References OptionType::BOOL, OptionType::CHAR, OptionType::DIRECTORY, OptionType::DOUBLE, OptionType::FILE_OR_DIR, OptionType::FILENAME, OptionType::FLOAT, OptionType::INT, OptionType::LONG, OptionType::NONE, OptionType::SHORT, OptionType::STRING, OptionType::UCHAR, OptionType::UINT, OptionType::ULONG, and OptionType::USHORT.
Referenced by OptionValue::bashCompletionValue(), Option::checkArgument(), OptionParser::checkOptionType(), OptionValue::checkTypeFromTemplate(), Option::print(), and testOptionType().
OptionType::OptionType getOptionTypeFromType< bool > | ( | ) |
Definition at line 111 of file OptionType.cpp.
References OptionType::BOOL.
Referenced by testOptionType().
OptionType::OptionType getOptionTypeFromType< char > | ( | ) |
Definition at line 113 of file OptionType.cpp.
References OptionType::CHAR.
Referenced by testOptionType().
OptionType::OptionType getOptionTypeFromType< double > | ( | ) |
Definition at line 131 of file OptionType.cpp.
References OptionType::DOUBLE.
Referenced by testOptionType().
OptionType::OptionType getOptionTypeFromType< float > | ( | ) |
Definition at line 129 of file OptionType.cpp.
References OptionType::FLOAT.
Referenced by testOptionType().
OptionType::OptionType getOptionTypeFromType< int > | ( | ) |
Definition at line 117 of file OptionType.cpp.
References OptionType::INT.
Referenced by testOptionType().
OptionType::OptionType getOptionTypeFromType< long > | ( | ) |
Definition at line 119 of file OptionType.cpp.
References OptionType::LONG.
Referenced by testOptionType().
OptionType::OptionType getOptionTypeFromType< PString > | ( | ) |
OptionType::OptionType getOptionTypeFromType< short > | ( | ) |
Definition at line 115 of file OptionType.cpp.
References OptionType::SHORT.
Referenced by testOptionType().
OptionType::OptionType getOptionTypeFromType< unsigned char > | ( | ) |
Definition at line 121 of file OptionType.cpp.
References OptionType::UCHAR.
Referenced by testOptionType().
OptionType::OptionType getOptionTypeFromType< unsigned int > | ( | ) |
Definition at line 125 of file OptionType.cpp.
References OptionType::UINT.
Referenced by testOptionType().
OptionType::OptionType getOptionTypeFromType< unsigned long > | ( | ) |
Definition at line 127 of file OptionType.cpp.
References OptionType::ULONG.
Referenced by testOptionType().
OptionType::OptionType getOptionTypeFromType< unsigned short > | ( | ) |
Definition at line 123 of file OptionType.cpp.
References OptionType::USHORT.
Referenced by testOptionType().
bool isOptionFloatingPoint | ( | OptionType::OptionType | type | ) |
Say if the option type is a floating point.
type | : type to be checked |
Definition at line 37 of file OptionType.cpp.
References OptionType::DOUBLE, and OptionType::FLOAT.
Referenced by isOptionTypeCompatible(), and testOptionType().
bool isOptionInteger | ( | OptionType::OptionType | type | ) |
Say if the option type is an integer.
type | : type to be checked |
Definition at line 29 of file OptionType.cpp.
References isOptionSignedInteger(), and isOptionUnsignedInteger().
Referenced by isOptionTypeCompatible(), and testOptionType().
bool isOptionSignedInteger | ( | OptionType::OptionType | type | ) |
Say if the option type is a signed integer.
type | : type to be checked |
Definition at line 13 of file OptionType.cpp.
References OptionType::CHAR, and OptionType::LONG.
Referenced by isOptionInteger(), and testOptionType().
bool isOptionStringFileDir | ( | OptionType::OptionType | type | ) |
Say if the option is a filename, a drectory, both or a string.
type | : type to be checked |
Definition at line 45 of file OptionType.cpp.
References OptionType::DIRECTORY, OptionType::FILE_OR_DIR, OptionType::FILENAME, and OptionType::STRING.
Referenced by isOptionTypeCompatible(), and testOptionType().
bool isOptionTypeCompatible | ( | OptionType::OptionType | typeFromParam, |
OptionType::OptionType | typeFromType | ||
) |
Say if two types are compatible.
typeFromParam | : type from parameters user |
typeFromType | : type automatically determined with default value type |
Definition at line 54 of file OptionType.cpp.
References OptionType::BOOL, isOptionFloatingPoint(), isOptionInteger(), and isOptionStringFileDir().
Referenced by OptionParser::checkOptionType(), and OptionValue::checkTypeFromTemplate().
bool isOptionUnsignedInteger | ( | OptionType::OptionType | type | ) |
Say if the option type is an unsigned integer.
type | : type to be checked |
Definition at line 21 of file OptionType.cpp.
References OptionType::UCHAR, and OptionType::ULONG.
Referenced by isOptionInteger(), and testOptionType().