Home | Develop | Download | Contact
RaArguments.hpp
1 /*
2  * RaArguments.hpp
3  *
4  * Copyright 2018 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  */
22 
30 #ifndef __PDS_RAARGUMENTS_HPP__
31 #define __PDS_RAARGUMENTS_HPP__
32 
33 #include <string>
34 #include <cstdio>
35 #include <list>
36 
46 namespace Pds{
51 namespace Ra{
52 
53 
74  std::string GetStringArgument( int argc,
75  char* const argv[],
76  const std::string &param,
77  const std::string &default_data);
78 
96  std::string GetStringArgument( int argc,
97  char* const argv[],
98  const std::string &param_long,
99  const std::string &param_short,
100  const std::string &default_data);
101 
118  int GetIntArgument( int argc,
119  char* const argv[],
120  const std::string &param,
121  int default_data);
122 
123 
137  bool ExistArgument(int argc, char* const argv[], const std::string &param);
138 
153  bool ExistArgument(int argc, char* const argv[], const std::string &param_long, const std::string &param_short);
154 
160 } // namespace Ra
161 } // namespace Pds
162 
163 
168 #endif /* __PDS_RAARGUMENTS_HPP__ */
std::string GetStringArgument(int argc, char *const argv[], const std::string &param, const std::string &default_data)
Obtiene el dato de tipo std::string que va después del parámetro param en una cadena de parámetros ar...
bool ExistArgument(int argc, char *const argv[], const std::string &param)
Retorna true si existe el parámetro param.
int GetIntArgument(int argc, char *const argv[], const std::string &param, int default_data)
Obtiene el dato de tipo int que va después del parámetro param en una cadena de parámetros argv de ar...
Nombre de espacion para PDS (Procesamiento Digital de Senales)
Definition: RaFile.hpp:47

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed