Craig's Utility Library  4.0 Beta
Utilities.Configuration.Manager.BaseClasses.Config< ConfigClassType > Class Template Reference

Default config base class More...

Inheritance diagram for Utilities.Configuration.Manager.BaseClasses.Config< ConfigClassType >:
Utilities.DataTypes.Dynamo< ConfigClassType > Utilities.Configuration.Manager.Interfaces.IConfig

Public Member Functions

void Load ()
 Loads the config More...
 
void Save ()
 Saves the config More...
 
- Public Member Functions inherited from Utilities.DataTypes.Dynamo< ConfigClassType >
 Dynamo ()
 Constructor More...
 
 Dynamo (object item)
 Constructor More...
 
 Dynamo (IDictionary< string, object > dictionary)
 Constructor More...
 
void Add (string key, object value)
 Adds a key/value pair to the object More...
 
void Add (KeyValuePair< string, object > item)
 Adds a key/value pair More...
 
void Clear ()
 Clears the key/value pairs More...
 
bool Contains (KeyValuePair< string, object > item)
 Does the object contain the key/value pair More...
 
bool ContainsKey (string key)
 Determines if the object contains a key More...
 
void Copy (object Item)
 Copies the properties from an item More...
 
void CopyTo (KeyValuePair< string, object >[] array, int arrayIndex)
 Copies the key/value pairs to an array More...
 
void CopyTo (object result)
 Copies data from here to another object More...
 
override bool Equals (object obj)
 Determines if two objects are equal More...
 
override IEnumerable< string > GetDynamicMemberNames ()
 Gets the dynamic member names More...
 
IEnumerator< KeyValuePair< string, object > > GetEnumerator ()
 Gets the enumerator for the object More...
 
override int GetHashCode ()
 Gets the hash code More...
 
virtual void GetObjectData (SerializationInfo info, StreamingContext context)
 Gets the object data and serializes it More...
 
System.Xml.Schema.XmlSchema GetSchema ()
 Not used More...
 
virtual void ReadXml (System.Xml.XmlReader reader)
 Reads the data from an XML doc More...
 
bool Remove (string key)
 Removes the value associated with the key More...
 
bool Remove (KeyValuePair< string, object > item)
 Removes a key/value pair More...
 
dynamic SubSet (params string[] Keys)
 Returns a subset of the current Dynamo object More...
 
To< T > ()
 Converts the object to the type specified More...
 
object To (Type ObjectType)
 Converts the object to the type specified More...
 
override string ToString ()
 Outputs the object graph More...
 
override bool TryConvert (ConvertBinder binder, out object result)
 Attempts to convert the object More...
 
override bool TryGetMember (GetMemberBinder binder, out object result)
 Attempts to get a member More...
 
bool TryGetValue (string key, out object value)
 Attempts to get a value More...
 
override bool TryInvoke (InvokeBinder binder, object[] args, out object result)
 Attempts to invoke a function More...
 
override bool TryInvokeMember (InvokeMemberBinder binder, object[] args, out object result)
 Attempts to invoke a member More...
 
override bool TrySetMember (SetMemberBinder binder, object value)
 Attempts to set the member More...
 
virtual void WriteXml (System.Xml.XmlWriter writer)
 Writes the data to an XML doc More...
 

Protected Member Functions

 Config (Func< string, ConfigClassType > StringToObject=null, Func< ConfigClassType, string > ObjectToString=null)
 Constructor More...
 
- Protected Member Functions inherited from Utilities.DataTypes.Dynamo< ConfigClassType >
 Dynamo ()
 Constructor More...
 
 Dynamo (object item)
 Constructor More...
 
 Dynamo (IDictionary< string, object > dictionary)
 Constructor More...
 
 Dynamo (SerializationInfo info, StreamingContext context)
 Constructor More...
 
 Dynamo (SerializationInfo info, StreamingContext context)
 Constructor More...
 
override object GetValue (string Name, Type ReturnType)
 Gets a value More...
 
virtual object GetValue (string Name, Type ReturnType)
 Gets a value More...
 
override void SetValue (string key, object value)
 Sets a value More...
 
virtual void SetValue (string key, object value)
 Sets a value More...
 
object RaiseGetValueEnd (string PropertyName, object Value)
 Raises the get value end event More...
 
object RaiseGetValueStart (string PropertyName)
 Raises the get value start event More...
 
void RaisePropertyChanged (string PropertyName, object NewValue)
 Raises the property changed event More...
 

Properties

abstract string Name [get]
 Name of the Config object More...
 
virtual string ConfigFileLocation [get]
 Location to save/load the config file from. If blank, it does not save/load but uses any defaults specified. More...
 
virtual string EncryptionPassword [get]
 Encryption password for properties/fields. Used only if set. More...
 
- Properties inherited from Utilities.DataTypes.Dynamo< ConfigClassType >
override ICollection< string > Keys [get]
 Keys to the dynamic type More...
 
virtual ICollection< string > Keys [get]
 Keys More...
 
override ICollection< object > Values [get]
 Gets the Values More...
 
virtual ICollection< object > Values [get]
 Values More...
 
ConcurrentDictionary< string, ChangeChangeLog [get]
 Change log More...
 
int Count [get]
 Number of items More...
 
bool IsReadOnly [get]
 Is this read only? More...
 
object this[string key] [get, set]
 Gets the value associated with the key specified More...
 
Action< Dynamo, string, EventArgs.OnEndEventArgsGetValueEnd
 Called when the value/property is found but before it is returned to the caller Sends (this, PropertyName, EventArgs) to items attached to the event More...
 
Action< Dynamo, EventArgs.OnStartEventArgsGetValueStart
 Called when beginning to get a value/property Sends (this, EventArgs) to items attached to the event More...
 
PropertyChangedEventHandler PropertyChanged
 Property changed event More...
 
- Properties inherited from Utilities.Configuration.Manager.Interfaces.IConfig
string Name [get]
 Name of the Config object More...
 

Detailed Description

Default config base class

Template Parameters
ConfigClassTypeConfig class type
Type Constraints
ConfigClassType :Config<ConfigClassType> 
ConfigClassType :new() 

Definition at line 37 of file Config.cs.

Constructor & Destructor Documentation

Utilities.Configuration.Manager.BaseClasses.Config< ConfigClassType >.Config ( Func< string, ConfigClassType >  StringToObject = null,
Func< ConfigClassType, string >  ObjectToString = null 
)
protected

Constructor

Parameters
StringToObjectString to object
ObjectToStringObject to string

Definition at line 45 of file Config.cs.

Member Function Documentation

void Utilities.Configuration.Manager.BaseClasses.Config< ConfigClassType >.Load ( )

Loads the config

Implements Utilities.Configuration.Manager.Interfaces.IConfig.

Definition at line 80 of file Config.cs.

void Utilities.Configuration.Manager.BaseClasses.Config< ConfigClassType >.Save ( )

Saves the config

Implements Utilities.Configuration.Manager.Interfaces.IConfig.

Definition at line 97 of file Config.cs.

Property Documentation

virtual string Utilities.Configuration.Manager.BaseClasses.Config< ConfigClassType >.ConfigFileLocation
getprotected

Location to save/load the config file from. If blank, it does not save/load but uses any defaults specified.

Definition at line 60 of file Config.cs.

virtual string Utilities.Configuration.Manager.BaseClasses.Config< ConfigClassType >.EncryptionPassword
getprotected

Encryption password for properties/fields. Used only if set.

Definition at line 65 of file Config.cs.

abstract string Utilities.Configuration.Manager.BaseClasses.Config< ConfigClassType >.Name
get

Name of the Config object

Definition at line 54 of file Config.cs.


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