GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CONFIG::OBJECTIVE::DATATYPE (3)

.ds Aq ’

NAME

Config::Objective::DataType - base class for Config::Objective data types

CONTENTS

SYNOPSIS



  use Config::Objective;
  use Config::Objective::DataType;

  my $conf = Config::Objective->new(filename, {
                objname       => Config::Objective::DataType->new(
                                        attr1 => 0,
                                        attr2 => "string",
                                        ...
                                )
        });



DESCRIPTION

The <B>Config::Objective::DataTypeB> module provides a class that encapsulates a value in an object so that it can be used with <B>Config::ObjectiveB>. Its methods can be used to manipulate the encapsulated value from the config file.

The <B>Config::Objective::DataTypeB> class is not intended to be used to directly instantiate configuration objects, but it does support the following methods for use in subclasses:
new() The constructor. It can be passed a hash to set the object’s attributes. The object will be created as a reference to this hash.

The value encapsulated by the object is stored in the value attribute. Setting this attribute in the constructor call will set the initial value for the object. If no initial value is supplied, the constructor will call the undef() method.

The <B>Config::Objective::DataTypeB> class does not use any other attributes. However, they can be useful in subclasses.

set() Sets the object’s value to the supplied value.
get() Returns the object’s value.
unset() Sets the object’s value to undef.
default() Calls the set() method.

AUTHOR

Mark D. Roth <roth@uiuc.edu>

SEE ALSO

perl

Config::Objective

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CONFIG::OBJECTIVE::DATATYPE (3) 2003-02-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.