PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
main.cpp
Go to the documentation of this file.
1 
2 /***************************************
3  Auteur : Pierre Aubert
4  Mail : pierre.aubert@lapp.in2p3.fr
5  Licence : CeCILL-C
6 ****************************************/
7 
8 #include "phoenix_assert.h"
9 #include "phoenix_check.h"
10 #include "OptionValue.h"
11 
14  OptionValue optValue("Shadoko", 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 }
36 
37 int main(int argc, char** argv){
39  return 0;
40 }
41 
42 
std::vector< PString > PVecString
Definition: PString.h:96
Describe the value of an option passed to a program.
Definition: OptionValue.h:16
const PVecString & getValue() const
Get the vector of values.
void setValue(const PString &value)
Set the value of the OptionValue.
OptionType::OptionType getType() const
Get the type of the OptionValue.
const PVecString & getDefaultValue() const
Get the default value of the OptionValue.
const PVecString & getPossibleValue() const
Get the possible values of the OptionValue.
#define phoenix_assert(isOk)
int main(int argc, char **argv)
Definition: main.cpp:290
void testOptionValue()
Test the option type.
Definition: main.cpp:13