deptest Class Reference

Inheritance diagram for deptest:

Inheritance graph
[legend]
Collaboration diagram for deptest:

Collaboration graph
[legend]

List of all members.

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 nDescriptorCreatorDescriptor () 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 nDescriptorCreatorDescriptor () const

Public Attributes

floattestdep

Private Attributes

int listID


Detailed Description

Definition at line 129 of file l3_demo.cpp.


Constructor & Destructor Documentation

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     }

Here is the caller graph for this function:

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     }

Here is the call graph for this function:

virtual deptest::~deptest (  )  [inline, virtual]

Definition at line 150 of file l3_demo.cpp.

References con, and nNetObject::owner.

00150                       {
00151         con << "deleting deptest owned by " << owner << ".\n";
00152     }

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     }

Here is the call graph for this function:

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     }


Member Function Documentation

deptest::tCONTROLLED_PTR ( floattest   ) 

Referenced by client().

Here is the caller graph for this function:

virtual bool deptest::AcceptClientSync (  )  const [inline, virtual]

Reimplemented from nNetObject.

Definition at line 155 of file l3_demo.cpp.

00155                                          {
00156         return true;
00157     }

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     }

Here is the call graph for this function:

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     }

Here is the call graph for this function:

void deptest::debug_out (  )  [inline]

Definition at line 115 of file nettest.cpp.

References con, debug_out(), and floattest::dep.

Referenced by debug_out().

00115                     {
00116         con << "x:";
00117         dep->debug_out();
00118     }

Here is the call graph for this function:

Here is the caller graph for this function:

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     }

Here is the call graph for this function:

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     }

Here is the call graph for this function:

virtual bool deptest::AcceptClientSync (  )  const [inline, virtual]

Reimplemented from nNetObject.

Definition at line 154 of file nettest.cpp.

00154                                          {
00155         return true;
00156     }

virtual nDescriptor& deptest::CreatorDescriptor (  )  const [virtual]

Implements nNetObject.


Member Data Documentation

int deptest::listID [private]

Definition at line 110 of file nettest.cpp.

floattest* deptest::dep

Definition at line 113 of file nettest.cpp.

Referenced by deptest(), and ~deptest().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:21:12 2008 for Armagetron Advanced by  doxygen 1.5.4