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 CommandNode_h_DEFINED 00013 #define CommandNode_h_DEFINED 00014 00015 #include <stdio.h> 00016 #include <MoNetData.h> 00017 00018 class CommandNode { 00019 public: 00020 CommandNode(MoNetPosture pos) : posture(pos) {} 00021 ~CommandNode() {} 00022 00023 friend bool operator< (const CommandNode& lhs, const CommandNode& rhs) { 00024 return (lhs.posture < rhs.posture) ? true : false; 00025 } 00026 friend bool operator== (const CommandNode& lhs, const CommandNode& rhs) { 00027 return (lhs.posture == rhs.posture) ? true : false; 00028 } 00029 00030 void Print() const { printf("%d", posture); } 00031 00032 private: 00033 MoNetPosture posture; 00034 }; 00035 00036 #endif // CommandNode_h_DEFINED