Represents a Value in a Sofu Tree
| C# |
public class Value : SofuObject
| All Members | Constructors | Methods | |||
| Icon | Member | Description |
|---|---|---|
| Value()()() |
Creates a new empty Sofu.Value.
Empty means: ""
| |
| Value(String) |
Creates a new Sofu.Value with a given content.
| |
| Value(Object) |
Creates a new Sofu.Value with a given content.
| |
| AppendComment(String) |
Appends to the comment of this SofuObject
(Inherited from SofuObject.) | |
| AppendText(String) |
Appends to the Text of this Value
This is not a normal Value function, but it is needed during read of SofuML
| |
| AsList()()() |
Tries to convert itself to a Sofu.List.
(Inherited from SofuObject.) | |
| AsMap()()() |
Tries to convert itself to a Sofu.Map.
(Inherited from SofuObject.) | |
| AsReference()()() |
Seldom used, this allows to access the reference itself, while AsMap, AsList and AsValue access the referenced Object.
(Inherited from SofuObject.) | |
| AsValue()()() |
Overriden from SofuObject.
(Overrides SofuObject.AsValue()()().) | |
| Binarify(String, Stream) |
Writes this Value into a Stream, does no Cross Reference checking.
(Overrides SofuObject.Binarify(String, Stream).) | |
| Binary(String, Stream) |
Writes this Object into a Stream, does Cross Reference checking.
(Inherited from SofuObject.) | |
| BinaryPack(Stream) |
Starts the binary packing, boxes every other SofuObject into a Map
(Inherited from SofuObject.) | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | (Inherited from Object.) | |
| GetComment()()() |
Accesses the comment of this SofuObject.
(Inherited from SofuObject.) | |
| GetHashCode()()() | (Inherited from Object.) | |
| GetType()()() | (Inherited from Object.) | |
| HasComment()()() |
Tests if this SofuObject has a comment.
(Inherited from SofuObject.) | |
| IsDefined()()() |
Tests if this SofuObject is anything else than a Sofu.Sofu.Undefined
(Inherited from SofuObject.) | |
| IsList()()() |
Tests if this SofuObject is a Sofu.List
(Inherited from SofuObject.) | |
| IsMap()()() |
Tests if this SofuObject is a Sofu.Map
(Inherited from SofuObject.) | |
| IsReference()()() |
Tests if this SofuObject is a Sofu.Reference
(Inherited from SofuObject.) | |
| IsValue()()() |
Tests if this Value is a Value
(Overrides SofuObject.IsValue()()().) | |
| MemberwiseClone()()() | (Inherited from Object.) | |
| Pack()()() |
Packs this SofuObject and all those it contains into a string.
(Inherited from SofuObject.) | |
| PackComment(Stream) |
Writes the comments of this Object into a Stream
(Inherited from SofuObject.) | |
| PackHeader(Stream) |
Creates the Header of a binary sofu file into a stream
(Inherited from SofuObject.) | |
| PackLong(UInt32, Stream) |
Packs one unsigned Integer into the output stream
(Inherited from SofuObject.) | |
| PackLong(Int32, Stream) |
Packs one unsigned Integer into the output stream
(Inherited from SofuObject.) | |
| PackText(String, Stream) |
Writes a text into an output stream
(Inherited from SofuObject.) | |
| SetComment(String) |
Sets a comment for this SofuObject.
(Inherited from SofuObject.) | |
| String(String, StringBuilder) |
Identifies cross references and calls Stringify with its parameters
(Inherited from SofuObject.) | |
| String(String, TextWriter, Int32) |
Identifies cross references and calls Stringify with its parameters
(Inherited from SofuObject.) | |
| Stringify(String, StringBuilder) |
Packs this Value into a string.
(Overrides SofuObject.Stringify(String, StringBuilder).) | |
| Stringify(String, TextWriter, Int32) |
Packs this Value into a string.
(Overrides SofuObject.Stringify(String, TextWriter, Int32).) | |
| StringML(XmlWriter) |
Writes this Object into Xml, does Cross Reference checking.
(Inherited from SofuObject.) | |
| ToDouble()()() |
Returns this Value as a Double
| |
| ToFloat()()() |
Returns this Value as a Float (Single)
| |
| ToInt()()() |
Returns this Value as an Int32
| |
| ToLong()()() |
Returns this Value as an Int64
| |
| ToString()()() |
Returns its contents.
(Overrides Object.ToString()()().) | |
| TypeString()()() |
Used to identify this as a Value
(Overrides SofuObject.TypeString()()().) | |
| Write(TextWriter) |
Writes the contents of this SofuObject into a TextWriter
(Inherited from SofuObject.) | |
| Write(String) |
Write this SofuObject into a file.
Uses the default encoding of UTF-16.
(Inherited from SofuObject.) | |
| Write(String, Encoding) |
Write this SofuObject into a file.
(Inherited from SofuObject.) | |
| WriteBinary(Stream, Int32, Endianness) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteBinary(Stream, Encoding, Endianness) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteBinary(Stream, Encoding) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteBinary(Stream, Int32) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteBinary(Stream, Endianness) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteBinary(Stream) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteBinary(String, Int32, Endianness) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteBinary(String, Encoding, Endianness) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteBinary(String, Encoding) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteBinary(String, Int32) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteBinary(String, Endianness) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteBinary(String) |
Writes this SofuObject and all its children into a binary sofu file
(Inherited from SofuObject.) | |
| WriteML(String) |
Writes this Object into a SofuML file
(Inherited from SofuObject.) | |
| WriteML(XmlWriter) |
Writes this Object into a SofuML tree.
(Inherited from SofuObject.) | |
| XMLcomment(XmlWriter) |
Writes this Objects comments to XML
(Inherited from SofuObject.) | |
| Xmlify(XmlWriter) |
Writes this Value to XML
(Overrides SofuObject.Xmlify(XmlWriter).) |
string version = "0"; Sofu.Map config = Sofu.LoadFile("Config.Sofu"); version=config.value("Version").ToString(); config.SetAttribute("LastAccess",new Sofu.Value("Today");
| Object | ||
| SofuObject | ||
| Value | ||