PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
get_argument_list.h
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 
8 
9 #ifndef __GET_ARGUMENT_LIST_H__
10 #define __GET_ARGUMENT_LIST_H__
11 
12 #include <list>
13 #include "PString.h"
14 
15 std::list<PString> phoenix_getArgumentList(int argc, char** argv);
16 bool phoenix_isOptionExist(const std::list<PString> & listArg, const std::list<PString> & argCheckList);
17 bool phoenix_isOptionExist(const std::list<PString> & listArg, const PString & arg1);
18 bool phoenix_isOptionExist(const std::list<PString> & listArg, const PString & arg1, const PString & arg2);
19 PString phoenix_listArgToString(const std::list<PString> & listArg);
20 
21 PString phoenix_getProgramCall(const std::list<PString> & listArg);
22 void phoenix_rmProgramCall(std::list<PString> & listArg);
23 
24 #endif
Extends the std::string.
Definition: PString.h:16
void phoenix_rmProgramCall(std::list< PString > &listArg)
Remove the program call from the list of argument.
bool phoenix_isOptionExist(const std::list< PString > &listArg, const std::list< PString > &argCheckList)
Check if one of the two passed arguments are in the list of arguments.
PString phoenix_getProgramCall(const std::list< PString > &listArg)
Get the program call.
std::list< PString > phoenix_getArgumentList(int argc, char **argv)
Convert the list of given arguments to the program into a list of string.
PString phoenix_listArgToString(const std::list< PString > &listArg)
Convert the given list of arguement into a string.