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 
#define phoenix_assert(isOk)
bool phoenix_setenv(const PString &name, const PString &value, bool overwrite)
Set a environment variable.
Definition: phoenix_env.cpp:25
bool phoenix_unsetenv(const PString &name)
Unset a environment variable.
Definition: phoenix_env.cpp:33
PString phoenix_getenv(const PString &varName)
Get the value of the given environment variable.
Definition: phoenix_env.cpp:15
int main(int argc, char **argv)
Definition: main.cpp:290
void testEnv()
Test the string filename function.
Definition: main.cpp:14