Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Wrappers.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of the ToolBox.
00003  * Copyright Thomas Jacob.
00004  *
00005  * READ README.TXT BEFORE USE!!
00006  */
00007 
00008 
00009 #ifndef __TOOLBOX_WRAPPERS_H
00010 #define __TOOLBOX_WRAPPERS_H
00011 
00012 
00013 namespace toolbox
00014 {
00019    class Bool
00020    {
00021       private:
00022 
00026          bool Value;
00027 
00028          #ifdef _TOOLBOX_TEST
00029 
00032             static int InstanceCount;
00033          #endif
00034 
00035       public:
00036 
00041          Bool(bool value);
00042 
00046          ~Bool();
00047 
00052          inline bool Get();
00053 
00058          inline void Set(bool value);
00059 
00060          #ifdef _TOOLBOX_TEST
00061 
00067             static void RunTestSuite(int * performedTests, int * failedTests);
00068          #endif
00069    };
00070 
00071 
00076    class Char
00077    {
00078       private:
00079 
00083          char Value;
00084 
00085          #ifdef _TOOLBOX_TEST
00086 
00089             static int InstanceCount;
00090          #endif
00091 
00092       public:
00093 
00098          Char(char value);
00099 
00103          ~Char();
00104 
00109          inline char Get();
00110 
00115          inline void Set(char value);
00116 
00117          #ifdef _TOOLBOX_TEST
00118 
00124             static void RunTestSuite(int * performedTests, int * failedTests);
00125          #endif
00126    };
00127 
00128 
00133    class Double
00134    {
00135       private:
00136 
00140          double Value;
00141 
00142          #ifdef _TOOLBOX_TEST
00143 
00146             static int InstanceCount;
00147          #endif
00148 
00149       public:
00150 
00155          Double(double value);
00156 
00160          ~Double();
00161 
00166          inline double Get();
00167 
00172          inline void Set(double value);
00173 
00174          #ifdef _TOOLBOX_TEST
00175 
00181             static void RunTestSuite(int * performedTests, int * failedTests);
00182          #endif
00183    };
00184 
00185 
00190    class Float
00191    {
00192       private:
00193 
00197          float Value;
00198 
00199          #ifdef _TOOLBOX_TEST
00200 
00203             static int InstanceCount;
00204          #endif
00205 
00206       public:
00207 
00212          Float(float value);
00213 
00217          ~Float();
00218 
00223          inline float Get();
00224 
00229          inline void Set(float value);
00230 
00231          #ifdef _TOOLBOX_TEST
00232 
00238             static void RunTestSuite(int * performedTests, int * failedTests);
00239          #endif
00240    };
00241 
00242 
00247    class Int
00248    {
00249       private:
00250 
00254          int Value;
00255 
00256          #ifdef _TOOLBOX_TEST
00257 
00260             static int InstanceCount;
00261          #endif
00262 
00263       public:
00264 
00269          Int(int value);
00270 
00274          ~Int();
00275 
00280          inline int Get();
00281 
00286          inline void Set(int value);
00287 
00288          #ifdef _TOOLBOX_TEST
00289 
00295             static void RunTestSuite(int * performedTests, int * failedTests);
00296          #endif
00297    };
00298 
00299 
00304    class LongDouble
00305    {
00306       private:
00307 
00311          long double Value;
00312 
00313          #ifdef _TOOLBOX_TEST
00314 
00317             static int InstanceCount;
00318          #endif
00319 
00320       public:
00321 
00326          LongDouble(long double value);
00327 
00331          ~LongDouble();
00332 
00337          inline long double Get();
00338 
00343          inline void Set(long double value);
00344 
00345          #ifdef _TOOLBOX_TEST
00346 
00352             static void RunTestSuite(int * performedTests, int * failedTests);
00353          #endif
00354    };
00355 
00356 
00361    class LongInt
00362    {
00363       private:
00364 
00368          long Value;
00369 
00370          #ifdef _TOOLBOX_TEST
00371 
00374             static int InstanceCount;
00375          #endif
00376 
00377       public:
00378 
00383          LongInt(long value);
00384 
00388          ~LongInt();
00389 
00394          inline long Get();
00395 
00400          inline void Set(long value);
00401 
00402          #ifdef _TOOLBOX_TEST
00403 
00409             static void RunTestSuite(int * performedTests, int * failedTests);
00410          #endif
00411    };
00412 
00413 
00418    class Pointer
00419    {
00420       private:
00421 
00425          void * Value;
00426 
00427          #ifdef _TOOLBOX_TEST
00428 
00431             static int InstanceCount;
00432          #endif
00433 
00434       public:
00435 
00440          Pointer(void * value);
00441 
00445          ~Pointer();
00446 
00451          inline void * Get();
00452 
00457          inline void Set(void * value);
00458 
00459          #ifdef _TOOLBOX_TEST
00460 
00466             static void RunTestSuite(int * performedTests, int * failedTests);
00467          #endif
00468    };
00469 
00470 
00475    class ShortInt
00476    {
00477       private:
00478 
00482          short Value;
00483 
00484          #ifdef _TOOLBOX_TEST
00485 
00488             static int InstanceCount;
00489          #endif
00490 
00491       public:
00492 
00497          ShortInt(short value);
00498 
00502          ~ShortInt();
00503 
00508          inline short Get();
00509 
00514          inline void Set(short value);
00515 
00516          #ifdef _TOOLBOX_TEST
00517 
00523             static void RunTestSuite(int * performedTests, int * failedTests);
00524          #endif
00525    };
00526 
00527 
00532    class SignedChar
00533    {
00534       private:
00535 
00539          signed char Value;
00540 
00541          #ifdef _TOOLBOX_TEST
00542 
00545             static int InstanceCount;
00546          #endif
00547 
00548       public:
00549 
00554          SignedChar(signed char value);
00555 
00559          ~SignedChar();
00560 
00565          inline signed char Get();
00566 
00571          inline void Set(signed char value);
00572 
00573          #ifdef _TOOLBOX_TEST
00574 
00580             static void RunTestSuite(int * performedTests, int * failedTests);
00581          #endif
00582    };
00583 
00584 
00589    class SignedInt
00590    {
00591       private:
00592 
00596          signed int Value;
00597 
00598          #ifdef _TOOLBOX_TEST
00599 
00602             static int InstanceCount;
00603          #endif
00604 
00605       public:
00606 
00611          SignedInt(signed int value);
00612 
00616          ~SignedInt();
00617 
00622          inline signed int Get();
00623 
00628          inline void Set(signed int value);
00629 
00630          #ifdef _TOOLBOX_TEST
00631 
00637             static void RunTestSuite(int * performedTests, int * failedTests);
00638          #endif
00639    };
00640 
00641 
00646    class SignedLongInt
00647    {
00648       private:
00649 
00653          signed long Value;
00654 
00655          #ifdef _TOOLBOX_TEST
00656 
00659             static int InstanceCount;
00660          #endif
00661 
00662       public:
00663 
00668          SignedLongInt(signed long value);
00669 
00673          ~SignedLongInt();
00674 
00679          inline signed long Get();
00680 
00685          inline void Set(signed long value);
00686 
00687          #ifdef _TOOLBOX_TEST
00688 
00694             static void RunTestSuite(int * performedTests, int * failedTests);
00695          #endif
00696    };
00697 
00698 
00703    class SignedShortInt
00704    {
00705       private:
00706 
00710          signed short Value;
00711 
00712          #ifdef _TOOLBOX_TEST
00713 
00716             static int InstanceCount;
00717          #endif
00718 
00719       public:
00720 
00725          SignedShortInt(signed short value);
00726 
00730          ~SignedShortInt();
00731 
00736          inline signed short Get();
00737 
00742          inline void Set(signed short value);
00743 
00744          #ifdef _TOOLBOX_TEST
00745 
00751             static void RunTestSuite(int * performedTests, int * failedTests);
00752          #endif
00753    };
00754 
00755 
00760    class UnsignedChar
00761    {
00762       private:
00763 
00767          unsigned char Value;
00768 
00769          #ifdef _TOOLBOX_TEST
00770 
00773             static int InstanceCount;
00774          #endif
00775 
00776       public:
00777 
00782          UnsignedChar(unsigned char value);
00783 
00787          ~UnsignedChar();
00788 
00793          inline unsigned char Get();
00794 
00799          inline void Set(unsigned char value);
00800 
00801          #ifdef _TOOLBOX_TEST
00802 
00808             static void RunTestSuite(int * performedTests, int * failedTests);
00809          #endif
00810    };
00811 
00812 
00817    class UnsignedInt
00818    {
00819       private:
00820 
00824          unsigned int Value;
00825 
00826          #ifdef _TOOLBOX_TEST
00827 
00830             static int InstanceCount;
00831          #endif
00832 
00833       public:
00834 
00839          UnsignedInt(unsigned int value);
00840 
00844          ~UnsignedInt();
00845 
00850          inline unsigned int Get();
00851 
00856          inline void Set(unsigned int value);
00857 
00858          #ifdef _TOOLBOX_TEST
00859 
00865             static void RunTestSuite(int * performedTests, int * failedTests);
00866          #endif
00867    };
00868 
00869 
00874    class UnsignedLongInt
00875    {
00876       private:
00877 
00881          unsigned long Value;
00882 
00883          #ifdef _TOOLBOX_TEST
00884 
00887             static int InstanceCount;
00888          #endif
00889 
00890       public:
00891 
00896          UnsignedLongInt(unsigned long value);
00897 
00901          ~UnsignedLongInt();
00902 
00907          inline unsigned long Get();
00908 
00913          inline void Set(unsigned long value);
00914 
00915          #ifdef _TOOLBOX_TEST
00916 
00922             static void RunTestSuite(int * performedTests, int * failedTests);
00923          #endif
00924    };
00925 
00926 
00931    class UnsignedShortInt
00932    {
00933       private:
00934 
00938          unsigned short Value;
00939 
00940          #ifdef _TOOLBOX_TEST
00941 
00944             static int InstanceCount;
00945          #endif
00946 
00947       public:
00948 
00953          UnsignedShortInt(unsigned short value);
00954 
00958          ~UnsignedShortInt();
00959 
00964          inline unsigned short Get();
00965 
00970          inline void Set(unsigned short value);
00971 
00972          #ifdef _TOOLBOX_TEST
00973 
00979             static void RunTestSuite(int * performedTests, int * failedTests);
00980          #endif
00981    };
00982 
00983 
00989    class Void
00990    {
00991       private:
00992 
00993          #ifdef _TOOLBOX_TEST
00994 
00997             static int InstanceCount;
00998          #endif
00999 
01000       public:
01001 
01005          Void();
01006 
01010          ~Void();
01011 
01012          #ifdef _TOOLBOX_TEST
01013 
01019             static void RunTestSuite(int * performedTests, int * failedTests);
01020          #endif
01021    };
01022 }
01023 
01024 
01025 #endif

Generated on Tue Oct 3 00:23:38 2006 for ToolBox by doxygen 1.3.6