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
13
void
testOptionValue
(){
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
}
36
37
int
main
(
int
argc,
char
** argv){
38
testOptionValue
();
39
return
0;
40
}
41
42
OptionValue.h
PVecString
std::vector< PString > PVecString
Definition:
PString.h:96
OptionValue
Describe the value of an option passed to a program.
Definition:
OptionValue.h:16
OptionValue::getValue
const PVecString & getValue() const
Get the vector of values.
Definition:
OptionValue.cpp:137
OptionValue::setValue
void setValue(const PString &value)
Set the value of the OptionValue.
Definition:
OptionValue.cpp:113
OptionValue::getType
OptionType::OptionType getType() const
Get the type of the OptionValue.
Definition:
OptionValue.cpp:147
OptionValue::getDefaultValue
const PVecString & getDefaultValue() const
Get the default value of the OptionValue.
Definition:
OptionValue.cpp:157
OptionValue::getPossibleValue
const PVecString & getPossibleValue() const
Get the possible values of the OptionValue.
Definition:
OptionValue.cpp:167
OptionType::STRING
@ STRING
Definition:
OptionType.h:18
phoenix_assert.h
phoenix_assert
#define phoenix_assert(isOk)
Definition:
phoenix_assert.h:19
phoenix_check.h
main
int main(int argc, char **argv)
Definition:
main.cpp:290
testOptionValue
void testOptionValue()
Test the option type.
Definition:
main.cpp:13
tmp_project
PhoenixOptionParser
TESTS
TEST_OPTION_VALUE
main.cpp
Generated on Fri Mar 14 2025 12:05:52 for PhoenixInkscape by
1.9.1