Initial
This commit is contained in:
47
thread/POSTFIX.HPP
Normal file
47
thread/POSTFIX.HPP
Normal file
@@ -0,0 +1,47 @@
|
||||
#ifndef _THREAD_POSTFIX_HPP_
|
||||
#define _THREAD_POSTFIX_HPP_
|
||||
|
||||
class PostFix
|
||||
{
|
||||
public:
|
||||
PostFix(void);
|
||||
virtual ~PostFix();
|
||||
void postFix(String &eventName)const;
|
||||
private:
|
||||
PostFix(const PostFix &somePostFix);
|
||||
PostFix &operator=(const PostFix &somePostFix);
|
||||
};
|
||||
|
||||
inline
|
||||
PostFix::PostFix(void)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
PostFix::PostFix(const PostFix &/*somePostFix*/)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
PostFix::~PostFix()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
PostFix &PostFix::operator=(const PostFix &/*somePostFix*/)
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline
|
||||
void PostFix::postFix(String &eventName)const
|
||||
{
|
||||
String eventNamePostFix;
|
||||
String invalidTokens(":./\\");
|
||||
|
||||
eventName.removeTokens(invalidTokens);
|
||||
::sprintf(eventNamePostFix,"@%ld@%ld",(LONG)this,::GetTickCount());
|
||||
eventName+=eventNamePostFix;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user