Browse Subversion Repository
Contents of /simulator/UrgSimulator.h
Parent Directory
| Revision Log
Revision 191 -
( show annotations)
( download)
( as text)
Fri Jan 4 02:49:36 2008 UTC
(16 years, 4 months ago)
by satofumi
File MIME type: text/x-chdr
File size: 1053 byte(s)
using namespace beego
| 1 |
#ifndef URG_SIMULATOR_H |
| 2 |
#define URG_SIMULATOR_H |
| 3 |
|
| 4 |
/*! |
| 5 |
\file |
| 6 |
\brief URG シミュレータ |
| 7 |
|
| 8 |
\author Satofumi KAMIMURA |
| 9 |
|
| 10 |
$Id$ |
| 11 |
*/ |
| 12 |
|
| 13 |
#include "SimulatorInterface.h" |
| 14 |
#include <memory> |
| 15 |
|
| 16 |
namespace beego { |
| 17 |
class ConnectionInterface; |
| 18 |
|
| 19 |
|
| 20 |
/*! |
| 21 |
\brief URG シミュレータの制御クラス |
| 22 |
*/ |
| 23 |
class UrgSimulator : public SimulatorInterface { |
| 24 |
UrgSimulator(void); |
| 25 |
UrgSimulator(const UrgSimulator& rhs); |
| 26 |
UrgSimulator& operator = (const UrgSimulator& rhs); |
| 27 |
|
| 28 |
struct pImpl; |
| 29 |
const std::auto_ptr<pImpl> pimpl; |
| 30 |
|
| 31 |
public: |
| 32 |
// !!! サンプルで、ここに直接 Accept の結果を渡す、のはよくないな |
| 33 |
// やっぱり。接続失敗することもあるし |
| 34 |
explicit UrgSimulator(ConnectionInterface& con); |
| 35 |
~UrgSimulator(void); |
| 36 |
|
| 37 |
// !!! 多分、そのうちに共通インターフェースに含める |
| 38 |
const char* what(void); |
| 39 |
void activateSimulator(void); |
| 40 |
SimulatorInterface* getObject(void); |
| 41 |
|
| 42 |
//void reset(void); |
| 43 |
//void powerOff(void); |
| 44 |
//void powerOn(void); |
| 45 |
//void runMainTask(void); |
| 46 |
|
| 47 |
// !!! 上記までが、共通かな? |
| 48 |
}; |
| 49 |
}; |
| 50 |
|
| 51 |
#endif /* !URG_SIMULATOR_H */ |
|