Pseudo type that contains all the global functions and constants.
Constants
Methods
Internal class used to expose the interface to the "Output" pane through the "system ()" function.
Attributes
Methods
The Any type is a catch-all that matches all types. It can not be instanced with var nor as a class attribute.
Instead, it can be used for references, arrays, links and other similar structures if they need to contain any kind of data without a common class or interface.
Examples
var String x = "Hello ";
ref Any myRef -> x;
myRef.cast(String).append ("world");
Container of binary data. This type can be used where blocks of unprocessed octets are to be managed.
Methods
TBD.
Attributes
Methods
TBD.
Attributes
Methods
The DecoString is a text string where characters can be "decorated" by setting their style and font.
Details on the kinds of available decorations are specified in class DecoStringDiff.
Methods
This type contains the style settings that can be done to a DecoString.
Click on the attributes to see the values that can be set for decoration.
Attributes
Methods
TBD.
Attributes
Methods
Used in conjunction with Time, it contains the information about time and date split into day, month, year, hour, seconds and so on.
var DecomposedTime dt;
var Time t;
t.setNowLocal ();
dt = t.decompose ();
system().msg << dt.day << "/" << dt.month << "/" << dt.year << endl;
Attributes
Methods
Used to read directories from O/S disks.
Attributes
Methods
Represents one entry of a directory (see Directory) .
Constants
Attributes
Methods
Low level input file. Used to read files stored on the disks.
Methods
Used to low-level write on files. The type FileOutStream is commonly used instead when text files are to be generated.
Methods
This type, derived from TextStream , can be used to create and write text files.
For example:
var FileOutStream fileOut("myFile.txt");
fileOut << "Hello world" << endl;
// Optionally:
fileOut.close();
Attributes
Methods
TBD.
Methods
Simple internal type that contains a 64-bit double precision floatin point value.
TBD.
Methods
TBD.
Methods
TBD.
Methods
TBD.
Methods
TBD.
Methods
Identifies an area of text or a graphic object within the Macrocoder sources. It is used to track data back to the source files that originated it.
Attributes
Methods
Simple internal type that contains a 64-bit signed integer value.
This interface, once exposed and implemented, allows any class to be used in a "<<" output chain.
For example:
class C1 {
String myText;
expose IExplain {
Void explain (out TextStream o) const {o << "C1=[" << myText << "]";}
}
}
Now it is possible to write an instance of C1 on any TextStream:
var C1 obj1;
system ().msg << "Instanced object " << obj1 << endl;
Methods
TBD.
Methods
TBD.
Methods
TBD.
Methods
Simple internal type that contains a 32-bit signed integer value.
Int values range from -2147483648 (minInt) to 2147483647 (maxInt).
TBD.
Methods
TBD.
TBD.
Attributes
Methods
TBD.
Attributes
Methods
TBD.
Attributes
Methods
TBD.
Attributes
Methods
TBD.
Methods
TBD.
Methods
TBD.
Methods
TBD.
Attributes
Methods
The String type is used to handle text strings of any length. Strings are formed by 16-bit UNICODE characters.
Methods
Examples
// Declare a string variable
var String a;
// Declare and set a string variable
var String b = "Hello world";
// Set some text
a = "this is an example text ";
// Append some text using the += operator or the "append" function
a += "written ";
a.append ("for you!");
// Form a string adding multiple substrings
a = "I'am "+str(myAge)+" years long";
TBD.
Methods
TBD.
Attributes
Methods
The "TextStream" class is the base class for all the types that can be used to stream text. For example, the system().msg object, commonly used to print messages on the message window, is of type ActiveTextderived from TextStream.
When generating output files, the FileOutStream class will provide with a TextStream interface on regular text files.
Attributes
Methods
Represent date/time. It can be used to retrieve the current date or to manipulate date/time data.
Methods
Dummy type used to declare return type for methods having no return.