00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "objectstate.h"
00024
00025 using namespace boost;
00026 using namespace oxygen;
00027 using namespace std;
00028
00029 FUNCTION(ObjectState,setPerceptName)
00030 {
00031 string inName;
00032
00033 if (
00034 (in.GetSize() != 1) ||
00035 (! in.GetValue(in.begin(),inName))
00036 )
00037 {
00038 return false;
00039 }
00040
00041 obj->SetPerceptName(inName);
00042 return true;
00043 }
00044
00045 FUNCTION(ObjectState,setID)
00046 {
00047 string inId;
00048
00049 if (
00050 (in.GetSize() != 1) ||
00051 (! in.GetValue(in.begin(), inId))
00052 )
00053 {
00054 return false;
00055 }
00056
00057 obj->SetID(inId);
00058 return true;
00059 }
00060
00061 void
00062 CLASS(ObjectState)::DefineClass()
00063 {
00064 DEFINE_BASECLASS(oxygen/BaseNode);
00065 DEFINE_FUNCTION(setPerceptName);
00066 DEFINE_FUNCTION(setID);
00067 }