RTFX  0.3
Real time special effects collaborative visualization and production library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
RTFXHelpers.h
1 #ifndef __RTFX_HELPERS__
2 #define __RTFX_HELPERS__
3 
12 #include <iostream>
13 #include <sstream>
14 #include <boost/iostreams/copy.hpp>
15 #include <boost/iostreams/device/back_inserter.hpp>
16 #include <boost/iostreams/filter/zlib.hpp>
17 #include <boost/iostreams/filter/gzip.hpp>
18 #include <boost/iostreams/filter/bzip2.hpp>
19 #include <boost/iostreams/filtering_stream.hpp>
20 #include <boost/lexical_cast.hpp>
21 
22 #include "RTFXBoostIncludes.h"
23 #include "RTFXDebug.h"
24 
25 using namespace std;
26 
27 namespace RTFX
28 {
30  static const std::string DEFAULTHOSTNAME = "localhost";
31 
33  static const std::string DEFAULTPORTSTRING = "49512";
34 
36  static const int DEFAULTPORT = 49512;
37 
39  static const double RTFXUNIT = 1.0;
40 
42  static const std::string RTFXUNITTEXT = "cm";
43 
45  string RTFXAPI ZLIBCompress( string &_input );
46 
48  string RTFXAPI ZLIBDecompress( string &_input );
49 
51  string RTFXAPI GZIPCompress( string &_input );
52 
54  string RTFXAPI GZIPDecompress( string &_input );
55 
57  string RTFXAPI BZIP2Compress( string &_input );
58 
60  string RTFXAPI BZIP2Decompress( string &_input );
61 
63  boost::uuids::uuid RTFXAPI GenerateUniqueID();
64 
66  void RTFXAPI MakeMailboxIDFromString( string _name, char * _mailboxID );
67 
69  void RTFXAPI BusySleep( unsigned int _count );
70 
72  boost::uuids::uuid RTFXAPI ConvertToUUID( char * _id );
73 
75  boost::uuids::uuid RTFXAPI ConvertStringToUUID( char * _id );
76 
78  void RTFXAPI ConvertUUIDToCharArray( boost::uuids::uuid _id, char * _data );
79 }
80 
81 #endif