Home | Develop | Download | Contact
MlDefines.hpp
1 /*
2  * MlDefines.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 
37 #ifndef __PDS_MLDEFINES_HPP__
38 #define __PDS_MLDEFINES_HPP__
39 
40 #include <iostream>
41 #include <cstring>
42 
43 #ifndef __CURRENT_FILENAME__
44 #define __CURRENT_FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
45 #endif
46 
47 #ifndef pds_print_error_message
53 #define pds_print_error_message(msg) \
54  std::cout<<"----ERROR :: "<<__CURRENT_FILENAME__<<" -- "<<__PRETTY_FUNCTION__<<" -- line "<<__LINE__<<std::endl \
55  <<"----ERROR :: "<<msg<<std::endl
56 #endif
57 
58 
59 
60 #ifndef pds_print_warning_message
66 #define pds_print_warning_message(msg) \
67  std::cout<<"--WARNING :: "<<msg<<std::endl
68 #endif
69 
70 
71 #ifndef pds_print_info_message
77 #define pds_print_info_message(msg) \
78  std::cout<<"-----INFO :: "<<msg<<std::endl
79 #endif
80 
81 
82 
83 namespace Pds{
84 namespace Ml{
85 
86 
91  const unsigned int StringPrecision=14;
92 
97  const double WarningRCond=0.000000001;
98 
99 
100 }
101 }
107 #endif /* __PDS_MLDEFINES_HPP__ */
const double WarningRCond
Definition: MlDefines.hpp:97
const unsigned int StringPrecision
Definition: MlDefines.hpp:91
Nombre de espacion para PDS (Procesamiento Digital de Senales)

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed