Greet 2014
Documentation for the GREET 2014 API
 All Classes Namespaces Functions Variables Enumerations Properties Events
Greet.ConvenienceLib.Convenience Class Reference

Methods used thoughout GREET for various purposes such as XML node manipulations, IDs creation and objects cloning More...

Classes

class  IDs
 Contains sets of methods to create IDs More...
 

Static Public Member Functions

static T Clone< T > (T RealObject)
 Perform a Clone of the object More...
 
static DateTime ConvertFromGREETTimestamp (int timestamp)
 Converts UNIX timestamp to DateTime More...
 
static int ConvertToGREETTimestamp (DateTime date)
 Converts DateTime to UNIX timestamp More...
 
static long ConvertToGREETTimestampMillisecond (DateTime date)
 Converts DateTime to UNIX timestamp More...
 
static XmlAttribute CreateAttr (this XmlDocument xmlDoc, string name, object value, string ci_=Convenience.ci)
 Returns a new attribute with the name and value set. More...
 
static XmlNode CreateNode (this XmlDocument xmlDoc, string name, params XmlNode[] children)
 Creates a new element node with the given name and the xmlDoc.NamespaceURI More...
 
static bool NotNullNOrEmpty (this XmlAttribute attr)
 Returns true if an attribute is not null nor empty More...
 
static string ToStringFull (this double value)
 Returns the more digits possible for a double Try to not use because it's kind of slow, expecially the line temp.Contains('E') More...
 

Detailed Description

Methods used thoughout GREET for various purposes such as XML node manipulations, IDs creation and objects cloning

Member Function Documentation

static T Greet.ConvenienceLib.Convenience.Clone< T > ( RealObject)
static

Perform a Clone of the object

Template Parameters
TThe type of object being cloned.
Parameters
RealObjectThe object instance to clone.
Returns
The cloned object.
static DateTime Greet.ConvenienceLib.Convenience.ConvertFromGREETTimestamp ( int  timestamp)
static

Converts UNIX timestamp to DateTime

Parameters
timestamp
Returns
static int Greet.ConvenienceLib.Convenience.ConvertToGREETTimestamp ( DateTime  date)
static

Converts DateTime to UNIX timestamp

Parameters
date
Returns
static long Greet.ConvenienceLib.Convenience.ConvertToGREETTimestampMillisecond ( DateTime  date)
static

Converts DateTime to UNIX timestamp

Parameters
date
Returns
static XmlAttribute Greet.ConvenienceLib.Convenience.CreateAttr ( this XmlDocument  xmlDoc,
string  name,
object  value,
string  ci_ = Convenience.ci 
)
static

Returns a new attribute with the name and value set.

Parameters
xmlDocThe document to create the attribute from.
nameThe name of the attribute tag that will be displayed in the xml file.
valueThe value of the attribute as an object, value.ToString will be used to convert.
Returns
static XmlNode Greet.ConvenienceLib.Convenience.CreateNode ( this XmlDocument  xmlDoc,
string  name,
params XmlNode[]  children 
)
static

Creates a new element node with the given name and the xmlDoc.NamespaceURI

Parameters
xmlDocThe document to create the node from.
nameThe name of the node which will display as a tag in the xml file.
childrenAttributes and Nodes to append to the node.
Returns
static bool Greet.ConvenienceLib.Convenience.NotNullNOrEmpty ( this XmlAttribute  attr)
static

Returns true if an attribute is not null nor empty

Parameters
attr
Returns
static string Greet.ConvenienceLib.Convenience.ToStringFull ( this double  value)
static

Returns the more digits possible for a double Try to not use because it's kind of slow, expecially the line temp.Contains('E')

Parameters
value
Returns

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