Public Member Functions | |
tCONTROLLED_PTR (floattest) dep | |
deptest (floattest *d) | |
deptest (nMessage &m) | |
virtual | ~deptest () |
virtual bool | AcceptClientSync () const |
virtual void | WriteCreate (nMessage &m) |
virtual nDescriptor & | CreatorDescriptor () const |
virtual bool | ClearToTransmit (int user) const |
void | debug_out () |
deptest (floattest *x) | |
deptest (nMessage &m) | |
virtual | ~deptest () |
virtual bool | ClearToTransmit (int user) const |
virtual void | WriteCreate (nMessage &m) |
virtual bool | AcceptClientSync () const |
virtual nDescriptor & | CreatorDescriptor () const |
Public Attributes | |
floattest * | dep |
Private Attributes | |
int | listID |
Definition at line 129 of file l3_demo.cpp.
deptest::deptest | ( | floattest * | d | ) | [inline] |
Definition at line 134 of file l3_demo.cpp.
References con.
Referenced by client().
00134 :nNetObject(),dep(d){ 00135 con << "created deptest.\n"; 00136 }
deptest::deptest | ( | nMessage & | m | ) | [inline] |
Definition at line 139 of file l3_demo.cpp.
References con, floattest::dep, nNetObject::id, nNetObject::Object(), and nNetObject::owner.
00139 :nNetObject(m){ 00140 00141 // read in dep's id: 00142 unsigned short id; 00143 m >> id; 00144 dep=(floattest *)Object(id); // find the object with the right ID 00145 00146 con << "created deptest by remote order from " 00147 << owner << ".\n"; 00148 }
virtual deptest::~deptest | ( | ) | [inline, virtual] |
deptest::deptest | ( | floattest * | x | ) | [inline] |
Definition at line 120 of file nettest.cpp.
References con, dep, floattest::dep, deptests, and floattest::listID.
00120 :listID(-1),dep(x){ 00121 con << "created deptest.\n"; 00122 dep->dep=this; 00123 deptests.Add(this,listID); 00124 }
deptest::deptest | ( | nMessage & | m | ) | [inline] |
Definition at line 126 of file nettest.cpp.
References con, dep, floattest::dep, deptests, nNetObject::id, floattest::listID, nNetObject::Object(), nMessage::Read(), and tERR_ERROR.
00126 :nNetObject(m),listID(-1){ 00127 con << "creating deptest.\n"; 00128 unsigned short id; 00129 m.Read(id); 00130 dep=(floattest *)nNetObject::Object(id); 00131 if (dep->dep){ 00132 tERR_ERROR("two deptests for the same same floattest!"); 00133 } 00134 00135 dep->dep=this; 00136 deptests.Add(this,listID); 00137 }
virtual deptest::~deptest | ( | ) | [inline, virtual] |
Definition at line 139 of file nettest.cpp.
References con, dep, floattest::dep, deptests, floattest::listID, and NULL.
00139 { 00140 dep->dep=NULL; 00141 con << "deleted deptest.\n"; 00142 deptests.Remove(this,listID); 00143 }
deptest::tCONTROLLED_PTR | ( | floattest | ) |
virtual bool deptest::AcceptClientSync | ( | ) | const [inline, virtual] |
virtual void deptest::WriteCreate | ( | nMessage & | m | ) | [inline, virtual] |
Reimplemented from nNetObject.
Definition at line 162 of file l3_demo.cpp.
References floattest::dep, nNetObject::ID(), and nNetObject::WriteCreate().
00162 { 00163 nNetObject::WriteCreate(m); 00164 m << dep->ID(); 00165 }
nDescriptor & deptest::CreatorDescriptor | ( | void | ) | const [virtual] |
Implements nNetObject.
Definition at line 179 of file l3_demo.cpp.
References deptest_init.
00179 { 00180 return deptest_init; 00181 }
virtual bool deptest::ClearToTransmit | ( | int | user | ) | const [inline, virtual] |
Reimplemented from nNetObject.
Definition at line 171 of file l3_demo.cpp.
References nNetObject::ClearToTransmit(), floattest::dep, and nNetObject::HasBeenTransmitted().
00171 { 00172 return nNetObject::ClearToTransmit(user) && 00173 dep->HasBeenTransmitted(user); 00174 }
void deptest::debug_out | ( | ) | [inline] |
Definition at line 115 of file nettest.cpp.
References con, debug_out(), and floattest::dep.
Referenced by debug_out().
virtual bool deptest::ClearToTransmit | ( | int | user | ) | const [inline, virtual] |
Reimplemented from nNetObject.
Definition at line 145 of file nettest.cpp.
References floattest::dep, and nNetObject::HasBeenTransmitted().
00145 { 00146 return dep->HasBeenTransmitted(user); 00147 }
virtual void deptest::WriteCreate | ( | nMessage & | m | ) | [inline, virtual] |
Reimplemented from nNetObject.
Definition at line 149 of file nettest.cpp.
References floattest::dep, nNetObject::ID(), nMessage::Write(), and nNetObject::WriteCreate().
00149 { 00150 nNetObject::WriteCreate(m); 00151 m.Write(dep->ID()); 00152 }
virtual bool deptest::AcceptClientSync | ( | ) | const [inline, virtual] |
virtual nDescriptor& deptest::CreatorDescriptor | ( | ) | const [virtual] |
Implements nNetObject.
int deptest::listID [private] |
Definition at line 110 of file nettest.cpp.