Server.Data.XmlData Class Reference

A simple non-generic class for loading and saving data into XML-files. The class inherits from the abstract class IPersistentData which implements methods for loading and saving. More...

Inheritance diagram for Server.Data.XmlData:

Inheritance graph
[legend]
Collaboration diagram for Server.Data.XmlData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 XmlData ()
 Constructs a new XmlHandler class.
DataContainer LoadData ()
 Load all available data from XML-files into the memory.
void SaveData (DataContainer data)
 Save data from an DataContainer object into XML-files on the harddrive.

Private Member Functions

Dictionary< int, CommentLoadComments ()
Dictionary< int, ProjectLoadProjects ()
 Loads the projects.
Dictionary< int, LiteratureLoadLiterature ()
 Loads the literature.
Dictionary< string, PersonLoadPersons ()
 Loads people.
void LoadRoles ()
 Loads Roles.
void LoadTags ()
 Loads Tags.
void LoadReferences ()
 Loads References.
void SaveTags (DataContainer data)
 Saves Tags.
void SaveProjects (DataContainer data)
 Saves Projects.
void SaveLiterature (DataContainer data)
 Saves Literature.
void SavePersons (DataContainer data)
 Saves Persons.

Private Attributes

XmlWriterSettings writerSettings
DataContainer data

Detailed Description

A simple non-generic class for loading and saving data into XML-files. The class inherits from the abstract class IPersistentData which implements methods for loading and saving.

Definition at line 18 of file XmlData.cs.


Constructor & Destructor Documentation

Server.Data.XmlData.XmlData (  ) 

Constructs a new XmlHandler class.

Definition at line 30 of file XmlData.cs.


Member Function Documentation

DataContainer Server.Data.XmlData.LoadData (  ) 

Load all available data from XML-files into the memory.

Returns:
A DataContainer object which is an encapsulation of dictionaries and tables.

Implements Server.Data.IPersistentData.

Definition at line 41 of file XmlData.cs.

void Server.Data.XmlData.SaveData ( DataContainer  data  ) 

Save data from an DataContainer object into XML-files on the harddrive.

Parameters:
data A DataContainer object which is an encapsulation of dictionaries and tables.

Implements Server.Data.IPersistentData.

Definition at line 54 of file XmlData.cs.

Dictionary<int, Project> Server.Data.XmlData.LoadProjects (  )  [private]

Loads the projects.

Returns:
Projects

Definition at line 65 of file XmlData.cs.

References Server.Project.Department, Server.Project.EndDate, Server.UniquelyIdentifiable.ID, Server.Project.IsSubmitted, Server.Project.StartDate, Server.Project.Subject, Server.Project.Synopsis, and Server.Project.Title.

Dictionary<int, Literature> Server.Data.XmlData.LoadLiterature (  )  [private]

Loads the literature.

Returns:
Literature

Definition at line 155 of file XmlData.cs.

References Server.Literature.Author, Server.Literature.Creator, Server.Literature.Date, Server.UniquelyIdentifiable.ID, Server.Literature.ISBN, Server.Literature.Source, Server.Literature.Summary, Server.Literature.Title, and Server.Literature.Type.

Dictionary<string, Person> Server.Data.XmlData.LoadPersons (  )  [private]

Loads people.

Returns:
People

Definition at line 252 of file XmlData.cs.

void Server.Data.XmlData.LoadRoles (  )  [private]

Loads Roles.

Definition at line 327 of file XmlData.cs.

References Server.Project.AddPerson().

Here is the call graph for this function:

void Server.Data.XmlData.LoadTags (  )  [private]

Loads Tags.

Definition at line 385 of file XmlData.cs.

void Server.Data.XmlData.LoadReferences (  )  [private]

Loads References.

Definition at line 418 of file XmlData.cs.

References Server.Project.AddPerson().

Here is the call graph for this function:

void Server.Data.XmlData.SaveTags ( DataContainer  data  )  [private]

Saves Tags.

Parameters:
data The DataContainer whose tags needs saving

Definition at line 478 of file XmlData.cs.

References Server.Data.DataContainer.Tags.

void Server.Data.XmlData.SaveProjects ( DataContainer  data  )  [private]

Saves Projects.

Parameters:
data The DataContainer whose tags needs saving

Definition at line 511 of file XmlData.cs.

References Server.Suggestion.Person, Server.Review.Person, Server.Data.DataContainer.ProjectTable, Server.Review.Rating, Server.Review.Text, Server.Review.Title, and Server.Person.UserName.

void Server.Data.XmlData.SaveLiterature ( DataContainer  data  )  [private]

Saves Literature.

Parameters:
data The DataContainer whose tags needs saving

Definition at line 593 of file XmlData.cs.

References Shared.Creator, and Server.Data.DataContainer.LiteratureTable.

void Server.Data.XmlData.SavePersons ( DataContainer  data  )  [private]

Saves Persons.

Parameters:
data The DataContainer whose tags needs saving

Definition at line 623 of file XmlData.cs.

References Server.Data.DataContainer.PersonTable.


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