PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
main.cpp File Reference
#include "phoenix_assert.h"
#include "phoenix_check.h"
#include "OptionValue.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 37 of file main.cpp.

37  {
39  return 0;
40 }
void testOptionValue()
Test the option type.
Definition: main.cpp:13

References testOptionValue().

+ Here is the call graph for this function:

◆ testOptionValue()

void testOptionValue ( )

Test the option type.

Definition at line 13 of file main.cpp.

13  {
14  OptionValue optValue("Shadoko", OptionType::STRING);
15  phoenix_assert(optValue.getType() == OptionType::STRING);
16  phoenix_assert(optValue.getValue().size() != 0lu);
17  PVecString vecVal;
18  OptionValue optVecValue(vecVal, OptionType::STRING);
19  phoenix_assert(optVecValue.getValue().size() == 0lu);
20  OptionValue optDefValue("Shadoko", OptionType::STRING, vecVal);
21  phoenix_assert(optDefValue.getValue().size() != 0lu);
22  OptionValue optVecDefValue(vecVal, OptionType::STRING, vecVal);
23  phoenix_assert(optVecDefValue.getValue().size() == 0lu);
24 
25  optVecDefValue.setValue("val");
26  optVecDefValue.setValue(vecVal);
27 
28  OptionValue optPossibleDefValue("value", OptionType::STRING, vecVal, vecVal);
29  phoenix_assert(optPossibleDefValue.getValue().size() != 0lu);
30  OptionValue optVecPossibleDefValue(vecVal, OptionType::STRING, vecVal, vecVal);
31  phoenix_assert(optVecPossibleDefValue.getValue().size() == 0lu);
32 
33  phoenix_assert(optVecPossibleDefValue.getDefaultValue().size() == 0lu);
34  phoenix_assert(optVecPossibleDefValue.getPossibleValue().size() == 0lu);
35 }
std::vector< PString > PVecString
Definition: PString.h:96
Describe the value of an option passed to a program.
Definition: OptionValue.h:16
#define phoenix_assert(isOk)

References OptionValue::getDefaultValue(), OptionValue::getPossibleValue(), OptionValue::getType(), OptionValue::getValue(), phoenix_assert, OptionValue::setValue(), and OptionType::STRING.

Referenced by main().

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