MoNetCommandInfo.h

Go to the documentation of this file.
00001 //
00002 // Copyright 2002 Sony Corporation 
00003 //
00004 // Permission to use, copy, modify, and redistribute this software for
00005 // non-commercial use is hereby granted.
00006 //
00007 // This software is provided "as is" without warranty of any kind,
00008 // either expressed or implied, including but not limited to the
00009 // implied warranties of fitness for a particular purpose.
00010 //
00011 
00012 #ifndef MoNetCommandInfo_h
00013 #define MoNetCommandInfo_h
00014 
00015 #include <MoNetData.h>
00016 
00017 const size_t MAXNUM_AGENT_COMMANDS = 2;
00018 
00019 class MoNetCommandInfo {
00020 public:
00021     MoNetCommandInfo(bool syncKey);
00022     ~MoNetCommandInfo() {}
00023 
00024     bool SetAgentCommand(MoNetAgentID agent, int index,
00025                          MoNetPosture start, MoNetPosture end);
00026     void SetAgentResult(MoNetAgentID agent, int index, MoNetStatus st);
00027     void ClearAgentResult();
00028     bool IsDone();
00029 
00030     MoNetPosture StartPosture();
00031     MoNetPosture EndPosture();
00032 
00033     bool               UseSyncKey()        { return useSyncKey;       }
00034     int                NumAgentCommands()  { return numAgentCommands; }
00035     MoNetAgentCommand* AgentCommand(int i) { return &agentCommand[i]; }
00036 
00037 private:
00038     bool              useSyncKey;
00039     int               numAgentCommands;
00040     MoNetStatus       status[MAXNUM_AGENT_COMMANDS];
00041     MoNetAgentCommand agentCommand[MAXNUM_AGENT_COMMANDS];
00042 };
00043 
00044 
00045 #endif // MoNetCommandInfo_h

Generated on Sun Dec 2 23:04:29 2007 for openSDK by  doxygen 1.3.9.1