Home | Develop | Download | Contact
RaDefines.hpp
1 /*
2  * RaDefines.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 
31 #ifndef __PDS_RADEFINES_HPP__
32 #define __PDS_RADEFINES_HPP__
33 
34 #include <iostream>
35 #include <cstring>
36 #include <cmath>
37 #include <ctime>
38 
39 
52 #ifndef __CURRENT_FILENAME__
53 #define __CURRENT_FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
54 #endif
55 
56 #ifndef pds_print_error_message
62 #define pds_print_error_message(msg) \
63  std::cout<<"----ERROR :: "<<__CURRENT_FILENAME__<<" -- "<<__PRETTY_FUNCTION__<<" -- line "<<__LINE__<<std::endl \
64  <<"----ERROR :: "<<msg<<std::endl
65 #endif
66 
67 
68 
69 #ifndef pds_print_warning_message
75 #define pds_print_warning_message(msg) \
76  std::cout<<"--WARNING :: "<<msg<<std::endl
77 #endif
78 
79 
80 #ifndef pds_print_info_message
86 #define pds_print_info_message(msg) \
87  std::cout<<"-----INFO :: "<<msg<<std::endl
88 #endif
89 
90 
96 namespace Pds{
97 namespace Ra{
98 
108  const double Pi =3.14159265358979323846264338327950288;
109 
114  const double Phi=1.61803398874989484820458683436563811;
115 
120  const unsigned int StringPrecision=14;
121 
126  const double WarningRCond=0.000000001;
127 
132  const double ToRadians =Pi/180.0;
133 
138  const double Nan=nan("");
139 
140 
157  typedef enum {
166  } FormatType;
167 
168 
175 }
176 }
177 
183 #endif /* __PDS_RADEFINES_HPP__ */
const unsigned int StringPrecision
Definition: RaDefines.hpp:120
const double WarningRCond
Definition: RaDefines.hpp:126
const double Phi
Definition: RaDefines.hpp:114
FormatType
Tipo de dato en la carga de información desde archivo.
Definition: RaDefines.hpp:157
const double Nan
Definition: RaDefines.hpp:138
const double ToRadians
Definition: RaDefines.hpp:132
const double Pi
Definition: RaDefines.hpp:108
@ MatFileFormat
Definition: RaDefines.hpp:165
@ TextFormat
Definition: RaDefines.hpp:161
Nombre de espacion para PDS (Procesamiento Digital de Senales)
Definition: RaFile.hpp:46

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed