IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Lib.LoadableBase Class Referenceabstract
+ Inheritance diagram for IG.Lib.LoadableBase:
+ Collaboration diagram for IG.Lib.LoadableBase:

Public Member Functions

 LoadableBase (string workingDirectory)
 
void Initialize ()
 Initializes the object. This method should already be called in constructor. More...
 
abstract string Execute (string[] arguments)
 Performs the action of this object. Override this in derived classes! More...
 

Protected Member Functions

abstract void InitializeSpecific ()
 Performs all the necessary initializations of the object. Override this method in derived classes (if extra initialization is needed) and call the base class' method in it. More...
 

Properties

object Lock [get]
 This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More...
 
virtual string WorkingDirectory [get, set]
 Working directory of the class. More...
 
virtual bool IsInitialized [get, protected set]
 Whether the object has been initialized or not. More...
 
- Properties inherited from IG.Lib.ILoadable
string WorkingDirectory [get, set]
 
- Properties inherited from IG.Lib.ILockable
object Lock [get]
 

Private Member Functions

 LoadableBase ()
 Constructs the class, calls the Initialize() method, which in turn calls the InitializeSpecific() method() More...
 

Private Attributes

object _mainLock = new object()
 
string _workingDir
 
bool _isInitialized = false
 

Constructor & Destructor Documentation

IG.Lib.LoadableBase.LoadableBase ( )
inlineprivate

Constructs the class, calls the Initialize() method, which in turn calls the InitializeSpecific() method()

IG.Lib.LoadableBase.LoadableBase ( string  workingDirectory)
inline

Member Function Documentation

void IG.Lib.LoadableBase.Initialize ( )
inline

Initializes the object. This method should already be called in constructor.

Implements IG.Lib.ILoadable.

abstract void IG.Lib.LoadableBase.InitializeSpecific ( )
protectedpure virtual

Performs all the necessary initializations of the object. Override this method in derived classes (if extra initialization is needed) and call the base class' method in it.

Implemented in IG.Lib.TestLoadable.

abstract string IG.Lib.LoadableBase.Execute ( string[]  arguments)
pure virtual

Performs the action of this object. Override this in derived classes!

Parameters
argumentsArguments through which different information can be passed.
Returns
String that represents result of the action.

Implements IG.Lib.ILoadable.

Implemented in IG.Lib.TestLoadable.

Member Data Documentation

object IG.Lib.LoadableBase._mainLock = new object()
private
string IG.Lib.LoadableBase._workingDir
private
bool IG.Lib.LoadableBase._isInitialized = false
private

Property Documentation

object IG.Lib.LoadableBase.Lock
get

This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock.

virtual string IG.Lib.LoadableBase.WorkingDirectory
getset

Working directory of the class.

virtual bool IG.Lib.LoadableBase.IsInitialized
getprotected set

Whether the object has been initialized or not.


The documentation for this class was generated from the following file: