00001 #ifndef _theplu_yat_utility_type_info_
00002 #define _theplu_yat_utility_type_info_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <string>
00027 #include <typeinfo>
00028
00029 namespace theplu {
00030 namespace yat {
00031 namespace utility {
00032
00036 class TypeInfo
00037 {
00038 public:
00042
00043 TypeInfo(void);
00044
00048
00049
00050 TypeInfo(const std::type_info&);
00051
00055 const std::type_info& get(void) const;
00056
00060 std::string name(void) const;
00061
00065 TypeInfo& operator=(const TypeInfo&);
00066
00067 private:
00068
00069
00070
00071
00072
00073 const std::type_info* info_;
00074 };
00075
00082 bool operator==(const TypeInfo&, const TypeInfo&);
00083
00089 bool operator!=(const TypeInfo&, const TypeInfo&);
00090
00097 bool operator<(const TypeInfo& lhs, const TypeInfo& rhs);
00098
00104 bool operator<=(const TypeInfo&, const TypeInfo&);
00105
00111 bool operator>(const TypeInfo&, const TypeInfo&);
00112
00118 bool operator>=(const TypeInfo&, const TypeInfo&);
00119
00120 }}}
00121
00122 #endif