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
46namespace Pds{
51namespace Ra{
52
53
87 std::string GetStringArgument( int argc,
88 char* const argv[],
89 const std::string &param,
90 const std::string &default_data);
91
122 std::string GetStringArgument( int argc,
123 char* const argv[],
124 const std::string &param_long,
125 const std::string &param_short,
126 const std::string &default_data);
127
157 int GetIntArgument( int argc,
158 char* const argv[],
159 const std::string &param,
160 int default_data);
161
162
189 bool ExistArgument(int argc, char* const argv[], const std::string &param);
190
218 bool ExistArgument(int argc, char* const argv[], const std::string &param_long, const std::string &param_short);
219
225} // namespace Ra
226} // namespace Pds
227
228
233#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 espacio para Pds (Procesamiento Digital de Senales)
Definition: AbstractRV.hpp:42

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed