furnace:
post my testing code, be happy
[阅读: 418] 2004-12-21 09:23:43
//=============================================================================
// CMyMasterServer.h - class declaration for master
// Copyright (C) ,Furnace, xxxx
// Date : 21.12.2004
//=============================================================================
#ifndef MYMASTERSERVER_H
#define MYMASTERSERVER_H
// ----------------------------------------------------------------------------
#include <stdio.h>
//=============================================================================
// CMyMasterServer
//=============================================================================
class CMyMasterServer : virtual public smfMasterBase_c
{
public:
// cstr&dstr
CMyMasterServer();
virtual ~CMyMasterServer();
// ------------------------------------------------------------------------
// the methods from smfMasterBase_c
// the function analyses the incoming message and based on current state
void processMessage(smfMsgBase_c *pMsg);
// function is called when statemachine deactive.
void finalize();
// funciton is called when statemachine is active.
int initInstance();
// ------------------------------------------------------------------------
private:
};
#endif // MYMASTERSERVER_H
I don't mind if you r FAT.
I don't mind if you r UGLY.
I don't mind if you ACT CUTE.
But I can't STAND if you r FAT, UGLY and still ACT CUTE.