EPANET-RTX  1.1
real-time extension for the EPANET toolkit
rtxMacros.h
1 //
2 // rtxMacros.h
3 // epanet-rtx
4 //
5 // Created by the EPANET-RTX Development Team
6 // See README.md and license.txt for more information
7 //
8 
9 #ifndef epanet_rtx_rtxMacros_h
10 #define epanet_rtx_rtxMacros_h
11 
12 #include <boost/shared_ptr.hpp>
13 #define RTX_SHARED_POINTER(type) typedef boost::shared_ptr<type> sharedPointer
14 
15 #define RTX_MAX_CHAR_STRING 256
16 #define RTX_MAX(x,y) x>y?x:y
17 #define RTX_MIN(x,y) x<y?x:y
18 
19 // silly macros for silly string comparison
20 #include <boost/algorithm/string/predicate.hpp>
21 #define RTX_STRINGS_ARE_EQUAL(x,y) (boost::algorithm::iequals(x,y))
22 #define RTX_STRINGS_ARE_EQUAL_CS(x,y) (x.compare(y)==0)
23 
24 
25 #ifndef RTX_BUFFER_DEFAULT_CACHESIZE
26 #define RTX_BUFFER_DEFAULT_CACHESIZE 100
27 #endif
28 
29 
30 #endif