Zeus API Reference - MyGeneration Software

ZeusOutput Members

ZeusOutput overview

Public Instance Constructors

ZeusOutput Constructor Creates a new ZeusOutput object.

Public Instance Properties

tabLevel The tabLevel property is the number of tabs that are prepended to outputted text when using the autoTab and autoTabLn methods.
text Sets or gets the current output buffer.

Public Instance Methods

append Save the current buffer to a file at path. If the file exists, append to the file.
autoTab Writes the inputed string, text, to the output buffer, prepended with the number of tabs specified by the tabLevel property.
autoTabLn Writes the inputed string, text, to the output buffer followed by a newline, prepended with the number of tabs specified by the tabLevel property.
clear Clears the output buffer.
decTab Decrements the tabLevel property.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
getPreserveBlock This function returns the preserved data with the preserve tags that corresponds to the key parameter.
getPreservedData This function returns the preserved data (without the preserve tags) that corresponds to the key parameter.
GetType (inherited from Object) Gets the Type of the current instance.
incTab Increments the tabLevel property.
preserve If the setPreserveSource(targetFile, prefex, suffix) function was called, all of the custom code from the targetFile is stored in the ZeusOutput object. When the preserve method is called, the code segment that correlates to the key parameter is written to the output buffer surrounted by the appropriate preserve tags.
save 
saveEnc Save the current buffer to a file at path. If the file exists, backup the existing file (by renaming it) and replace it.
            output.save(filename, "d"); // Save only if file doesn't exists
            output.save(filename, "o"); // Overwrite
            output.save(filename, "b"); // Backup and overwrite
            output.save(filename, "a"); // Append
            
setPreserveSource The file at the path parameter will be opened up and all PRESERVE blocks will be loaded and kept for use in this ZeusOutput object. The preserve(key) method can be used to get preserved code segments by it's key parameter.
ToString (inherited from Object) Returns a String that represents the current Object.
write Writes the inputed string, text, to the output buffer.
writeln Writes the inputed string, text, to the output buffer followed by a newline.

See Also

ZeusOutput Class | Zeus Namespace