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 <iostream>
9
#include "
phoenix_assert.h
"
10
#include "
phoenix_env.h
"
11
12
14
void
testEnv
(){
15
phoenix_assert
(
phoenix_getenv
(
"UNEXISTING_VARIABLE"
) ==
""
);
16
phoenix_assert
(
phoenix_setenv
(
"SomeExistingVariable"
,
"42"
));
17
phoenix_assert
(
phoenix_getenv
(
"SomeExistingVariable"
) ==
"42"
);
18
phoenix_assert
(
phoenix_unsetenv
(
"SomeExistingVariable"
));
19
}
20
21
int
main
(
int
argc,
char
** argv){
22
testEnv
();
23
return
0;
24
}
25
26
phoenix_assert.h
phoenix_assert
#define phoenix_assert(isOk)
Definition:
phoenix_assert.h:19
phoenix_setenv
bool phoenix_setenv(const PString &name, const PString &value, bool overwrite)
Set a environment variable.
Definition:
phoenix_env.cpp:25
phoenix_unsetenv
bool phoenix_unsetenv(const PString &name)
Unset a environment variable.
Definition:
phoenix_env.cpp:33
phoenix_getenv
PString phoenix_getenv(const PString &varName)
Get the value of the given environment variable.
Definition:
phoenix_env.cpp:15
phoenix_env.h
main
int main(int argc, char **argv)
Definition:
main.cpp:290
testEnv
void testEnv()
Test the string filename function.
Definition:
main.cpp:14
tmp_project
PhoenixCore
TESTS
TEST_ENV
main.cpp
Generated on Fri Mar 14 2025 12:05:52 for PhoenixInkscape by
1.9.1