Server.UniquelyIdentifiable Class Reference

An abstract class used for assigning unique ID's to inherieted objects. The class contains a private static integer variable which represents the ID next to be assigned. More...

Inheritance diagram for Server.UniquelyIdentifiable:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 UniquelyIdentifiable (int id)
 When inherited from, this abstract class represents an unique ID.

Static Public Member Functions

static void Reset ()
 Resets the ID counter (NEVER DO THIS UNLESS TESTING or DEBUGGING!) (please) :).

Properties

static int NextID [get]
 Return the value of the next ID to be assigned.
int ID [get]
 Return a new ID and add 1 to the static NextID variable.

Private Member Functions

int Next (int h)

Private Attributes

int id

Static Private Attributes

static int nextID = 0

Detailed Description

An abstract class used for assigning unique ID's to inherieted objects. The class contains a private static integer variable which represents the ID next to be assigned.

Definition at line 11 of file UniquelyIdentifiable.cs.


Constructor & Destructor Documentation

Server.UniquelyIdentifiable.UniquelyIdentifiable ( int  id  ) 

When inherited from, this abstract class represents an unique ID.

Parameters:
id An unique ID number.

Definition at line 20 of file UniquelyIdentifiable.cs.

References Server.UniquelyIdentifiable.Next().

Here is the call graph for this function:


Member Function Documentation

static void Server.UniquelyIdentifiable.Reset (  )  [static]

Resets the ID counter (NEVER DO THIS UNLESS TESTING or DEBUGGING!) (please) :).

Definition at line 35 of file UniquelyIdentifiable.cs.

References Server.UniquelyIdentifiable.nextID.


Property Documentation

int Server.UniquelyIdentifiable.NextID [static, get]

Return the value of the next ID to be assigned.

Definition at line 29 of file UniquelyIdentifiable.cs.

int Server.UniquelyIdentifiable.ID [get]

Return a new ID and add 1 to the static NextID variable.

Definition at line 52 of file UniquelyIdentifiable.cs.

Referenced by Server.Catalogue.CreateProject(), Server.Data.BinaryData.LoadData(), Server.Data.XmlData.LoadLiterature(), Server.Data.XmlData.LoadProjects(), and Server.Data.BinaryData.SerializeComment().


The documentation for this class was generated from the following file:
Generated on Thu Dec 21 06:25:13 2006 for SCRAML by  doxygen 1.5.1-p1