00001 #ifndef _UNEVT_UNEVT_ClassIdent_H_ // -*-c++-*-
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifdef __GNUG__
00022 # pragma interface
00023 #endif
00024
00025
00026
00027
00028
00029 #include <LCore/HopClTypes.h>
00030 #include <LCore/Protocol.h>
00031
00032 #define _UNEVT_UNEVT_ClassIdent_H_
00033
00034 namespace strmod {
00035 namespace unievent {
00036
00037
00038
00039
00040 class UNEVT_ClassIdent : public lcore::EH_ClassIdent,
00041 virtual public lcore::Protocol
00042 {
00043 public:
00044 static const UNEVT_ClassIdent identifier;
00045
00046
00047 inline explicit UNEVT_ClassIdent(lcore::U4Byte cnum);
00048
00049 inline virtual int AreYouA(const lcore::ClassIdent &cid) const;
00050
00051 protected:
00052 inline virtual const lcore::ClassIdent *i_GetIdent() const;
00053 };
00054
00055
00056
00057 inline const lcore::ClassIdent *UNEVT_ClassIdent::i_GetIdent() const
00058 {
00059 return(&identifier);
00060 }
00061
00062 inline int UNEVT_ClassIdent::AreYouA(const lcore::ClassIdent &cid) const
00063 {
00064 return((identifier == cid) || EH_ClassIdent::AreYouA(cid));
00065 }
00066
00067 inline UNEVT_ClassIdent::UNEVT_ClassIdent(lcore::U4Byte cnum) :
00068 lcore::EH_ClassIdent(lcore::EH_ClassNum(lcore::EH_ClassNum::User3, cnum))
00069 {
00070 }
00071
00072 }
00073 }
00074
00075 #endif