NAME
X3D - Don't use it. It's in development. For test purposes only!
CAVEATS
Don't use it. It's in development. For test purposes only!
SYNOPSIS
use X3D;
DESCRIPTION
Importing X3D overloads CORE::time with Time::Hires::time. All possible restrictions and all possible warnings are enabled.
EXPORTS
NO
Is not YES.
YES
Is not NO.
ENVIRONMENT
Type list ...
TYPE CREATION
SYNOPSIS
package BasePackage;
use X3D 'Object';
use X3D 'Scalar ()';
use X3D 'Array []';
use X3D 'Hash {}';
use X3D 'Type : Supertype {}';
use X3D 'Type : Supertype Supertypes {}';
Creates a new type in each case and binds this to the base package.
sub new { shift->NEW }
my $object = new Type;
FUNCTION IMPORT
In some cases you need a function directly in your type.
package BasePackage;
use X3D 'Type ()', 'new', ...;
sub new { ... }
Get's Type a &new method.
INTERFACE
SET_DESCRIPTION(type, description)
Is called one time on import.
UNIVERSAL OBJECT
If you havn't specified any supertype then the following functions are available.
OVERLOADS
bool => Returns YES.
int => Same as getId.
<=> => Compares two object ids.
cmp => Compares two objects stringwise.
"" => Same as toString.
METHODS
NEW
Returns a new instance. A new type should specify its own 'new' method.
getType
Returns the type of the object as string.
getId
Returns the id of the object as integer.
getHierarchy
Returns an array reference.
toString
Same as overload::StrVal. A new type should specify its own 'toString' method.