Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

Util Class Reference

Contains various utility functions (static methods). More...

List of all members.

Static Public Member Functions

static void Checkpoint ()
 Writes a checkpoint to the console.
static string RemoveSirname (string fileName)
 Removes a sirname from a file.
static string TraversePath (string currentPath, string relativePath)
 Uses currentPath and relativePath to make a new path.
static bool IsRootPath (string path)
 Discovers if the path is the root path.
static bool IsRelative (string path)
 Returns true if it is a relative path, false otherwise.
static bool CompareArrayLists (ArrayList first, ArrayList second)
 Compares the contents of two arraylists. It writes the contents of the first mismatch to standard output. Returns true if there were no mismatches, false otherwise.
static void Save (string filename, IReferenceSaveSerializable o)
 Saves an object to the filesystem.
static void Load (string filename, IReferenceSaveSerializable o)
 Loads an object from the filesystem.


Detailed Description

Contains various utility functions (static methods).


Member Function Documentation

static void Util::Checkpoint  )  [inline, static]
 

Writes a checkpoint to the console.

Todo:
Test method.

Must be compiled with -debug and run with --debug, otherwise filename and method = "" and linenumber = 0.

static bool Util::CompareArrayLists ArrayList  first,
ArrayList  second
[inline, static]
 

Compares the contents of two arraylists. It writes the contents of the first mismatch to standard output. Returns true if there were no mismatches, false otherwise.

Maybe this should be in a TestUtil class.

Todo:
Test method.

static bool Util::IsRelative string  path  )  [inline, static]
 

Returns true if it is a relative path, false otherwise.

Todo:
Test method

static bool Util::IsRootPath string  path  )  [inline, static]
 

Discovers if the path is the root path.

Todo:
Test method

static void Util::Load string  filename,
IReferenceSaveSerializable  o
[inline, static]
 

Loads an object from the filesystem.

Could be places in a TestUtil class.

Todo:
Test method.

static string Util::RemoveSirname string  fileName  )  [inline, static]
 

Removes a sirname from a file.

By sirname is meant everything after the last dot.

Todo:
Consider if this function should throw an exception, if the file do not contain a dot.

static void Util::Save string  filename,
IReferenceSaveSerializable  o
[inline, static]
 

Saves an object to the filesystem.

Could be places in a TestUtil class.

Todo:
Test method.

static string Util::TraversePath string  currentPath,
string  relativePath
[inline, static]
 

Uses currentPath and relativePath to make a new path.

Todo:
Test method


The documentation for this class was generated from the following file: SourceForge.net Logo