LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
NetUtil.h
1 #ifndef RHESUS_NETUTIL_H_
2 #define RHESUS_NETUTIL_H_
3 
4 #include "Includes.h"
5 #include <cmath>
6 
7 namespace Rhesus
8 {
9 namespace Messenger
10 {
11  class NetUtil
12  {
13  public:
14  static UINT32 PackFloat(float f);
15  static float UnpackFloat(UINT32 packed);
16 
17  static UINT64 PackDouble(double d);
18  static double UnpackDouble(UINT64 packed);
19 
20  static void DebugPrint(char* c);
21  };
22 }
23 }
24 
25 #endif