Examples Documentation Contact Downloads

Documentation

For a complete class reference, you can go to the Doxygen documentation. This online manual is a work in progress, expect frequent changes to the material.

1 Introduction
Audience
Typographical Conventions
Structure

2 The Data Classes
The string Class
The statstring Class
The value Class
The currency Class
The ipaddress Class
The timestamp Class

3 Data Classes in Action
The Code
Inline value Declaration
String Formatting
Data Objects and Memory Management
Working with IPv4 Addresses
Exploring Data Classes with the Grace Shell

4 Using the value Class
Variant Data
Array Handling
Dictionary Handling
More Child Management
Attributes
Sorting Objects
Handling CSV Formats
Loading INI Files
Native Serialization Using SHoX
The NeXT / Apple 'plist' Format
Serializing and Deserializing PHP Arrays
Simplistic ASCII Serialization

5 String Manipulation
Array Access
String Matching
Finding a Sequence Inside a String
Copying Sub-strings
Copying Using Markers
Cutting up Using Markers
Changing the Case
Removing Unwanted Characters
Cropping and Padding
Formatting and Encoding
Splitting Strings
Regular Expressions
Parameter Parsing

6 Building Applications
Using mkproject
Command Line Options
Resources Inside the Application Bundle
The Configuration File
Building Standalone Executables
Initialization

7 Files
The filesystem Class
Alias Paths
Directories
Filesystem Manipulation
The file Class
Nonblocking Operation

8 Networking
Using tcpsocket
Listening Sockets
Interacting with HTTP Servers
Posting Form Data
Sending SMTP Mail

9 Threads
Creating a Thread Subclass
Using Locks
Sending and Handling Events
Synchronization with Conditionals
Grouped Threads
Thread-local Storage

10 Building Daemons
Using mkproject for Daemons
Configuration Triggers
The Log Thread
Delaying Daemonization
The .pid File
Specifying Child Process Credentials

11 XML Schemas
Native encoding
Applying an XML Schema
Using the Tag Type as a Key
Mixing Tag and Attribute Keys
Wrapping the Value
Container Arrays
Advanced Wrapping
Making Things Interesting
Example: Push Access Protocol
Boolean Values as Objects

12 Data Validation
Using the validator Class
match.data
match.id
match.child
match.rule
match.attrib
match.mandatory
mandatory
optional

13 HTML Templates
Using scriptparser
Using Sections
Looping Through Arrays
Conditional Evaluation
Assigning and Modifying Variables

14 The HTTP Server
Using the Class
Attaching Handlers
Chaining
Using httpdlogger