00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef WP_ENDIAN_H
00018 #define WP_ENDIAN_H
00019
00020 #include <iostream>
00021 #include <fstream>
00022 using namespace std;
00023
00024 #include "WP_Def.h"
00025 #include "WP_RGBA.h"
00026
00027 namespace WPCG
00028 {
00047 class WP_Endian
00048 {
00049 public:
00050 ~WP_Endian(){};
00051
00056 static WP_Endian* getInstance()
00057 {
00058 if (!_instance)
00059 _instance = new WP_Endian();
00060 return _instance;
00061 }
00062
00069 void getTypedData(void* destination, byte*& buffer, int size);
00070
00074 bool little_endian;
00075
00076 private:
00077 WP_Endian();
00078
00082 static WP_Endian* _instance;
00083 };
00084 }
00085 #endif
00086