Craig's Utility Library
4.0 Beta
|
Format base class for objects that are string based More...
Public Member Functions | |
override object | Clone () |
Clones the object More... | |
override int | CompareTo (FormatType other) |
Compares the object to another object More... | |
override bool | Equals (FormatType other) |
Determines if the objects are equal More... | |
override FormatType | Save (string Location) |
Saves the object More... | |
Public Member Functions inherited from Utilities.IO.FileFormats.BaseClasses.FormatBase< FormatType, string > | |
int | CompareTo (object obj) |
Compares the object to another object More... | |
override bool | Equals (object obj) |
Determines if the objects are equal More... | |
override int | GetHashCode () |
Gets the hash code for the object More... | |
Static Public Member Functions | |
static implicit | operator string (StringFormatBase< FormatType > Value) |
Converts the format to a string More... | |
static implicit | operator StringFormatBase< FormatType > (string Value) |
Converts the string to the format specified More... | |
Static Public Member Functions inherited from Utilities.IO.FileFormats.BaseClasses.FormatBase< FormatType, string > | |
static FormatType | Load (string Location) |
Loads the object from the location specified More... | |
static bool | operator!= (FormatBase< FormatType, ContentType > Value1, FormatBase< FormatType, ContentType > Value2) |
Determines if the two are not equal More... | |
static bool | operator< (FormatBase< FormatType, ContentType > Value1, FormatBase< FormatType, ContentType > Value2) |
Determines if it is less than More... | |
static bool | operator<= (FormatBase< FormatType, ContentType > Value1, FormatBase< FormatType, ContentType > Value2) |
Determines if it is less than or equal More... | |
static bool | operator== (FormatBase< FormatType, ContentType > Value1, FormatBase< FormatType, ContentType > Value2) |
Determines if the two are equal More... | |
static bool | operator> (FormatBase< FormatType, ContentType > Value1, FormatBase< FormatType, ContentType > Value2) |
Determines if it is greater than More... | |
static bool | operator>= (FormatBase< FormatType, ContentType > Value1, FormatBase< FormatType, ContentType > Value2) |
Determines if it is greater than or equal More... | |
Protected Member Functions | |
StringFormatBase () | |
Constructor More... | |
override FormatType | InternalLoad (string Location) |
Loads the object from the location specified More... | |
abstract void | LoadFromData (string Data) |
Loads the object from the data specified More... | |
Protected Member Functions inherited from Utilities.IO.FileFormats.BaseClasses.FormatBase< FormatType, string > | |
FormatBase () | |
Constructor More... | |
Format base class for objects that are string based
FormatType | : | StringFormatBase<FormatType> | |
FormatType | : | new() |
Definition at line 30 of file StringFormatBase.cs.
|
protected |
Constructor
Definition at line 36 of file StringFormatBase.cs.
|
virtual |
Clones the object
Implements Utilities.IO.FileFormats.BaseClasses.FormatBase< FormatType, string >.
Definition at line 67 of file StringFormatBase.cs.
|
virtual |
Compares the object to another object
other | Object to compare to |
Implements Utilities.IO.FileFormats.BaseClasses.FormatBase< FormatType, string >.
Definition at line 77 of file StringFormatBase.cs.
|
virtual |
Determines if the objects are equal
other | Other object to compare to |
Implements Utilities.IO.FileFormats.BaseClasses.FormatBase< FormatType, string >.
Definition at line 87 of file StringFormatBase.cs.
|
protectedvirtual |
Loads the object from the location specified
Location | Location of the file to load |
Implements Utilities.IO.FileFormats.BaseClasses.FormatBase< FormatType, string >.
Definition at line 108 of file StringFormatBase.cs.
|
protectedpure virtual |
Loads the object from the data specified
Data | Data to load into the object |
Implemented in Utilities.IO.FileFormats.VCard, Utilities.IO.FileFormats.VCalendar, Utilities.IO.FileFormats.RSS.Document, and Utilities.IO.FileFormats.INI.
|
static |
Converts the format to a string
Value | Value to convert |
Definition at line 45 of file StringFormatBase.cs.
|
static |
Converts the string to the format specified
Value | Value to convert |
Definition at line 56 of file StringFormatBase.cs.
|
virtual |
Saves the object
Location | Location to save it to |
Implements Utilities.IO.FileFormats.BaseClasses.FormatBase< FormatType, string >.
Definition at line 97 of file StringFormatBase.cs.