B
Billy N. Patton
-------- Original Message --------
Subject: perl AUTOLOADER vs c++
Date: Fri, 15 Oct 2004 13:28:18 -0500
From: Billy N. Patton <[email protected]>
Organization: Texas Instruments
Newsgroups: alt.comp.lang.learn.c-c++
Assume I have a perl class/module called Ui.
The need for this is to have ALL io the exact same.
If I need a new switch my command line parser will just add it to the
hash of the blessed class. I don't have to export the method to get to
the data I can simple call the class with the proper name and the
autoload will take care of the rest, With a little coding in the auto
loader.
Ex:
if I pass in -abc some_value.
the command line parser will set in my hash 'abc' => 'some_value'
With out the autoloader I have no access unless I've exported the hash
But with the autoloader I can do
$val = $ui->abc();
I've created a Ui class in C++. All the variables are declared as
static. I only want one copy of each variable.
Currently, I'm having to do a get and a set type method for each
variable in my private section.
Does c++ have something similar to perls autoloader?
THis would greatly increase the functionality of my Ui class.
Dynamic switches and methods
--
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodlogy Group
Dallas, Texas, 214-480-4455, (e-mail address removed)
--
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodlogy Group
Dallas, Texas, 214-480-4455, (e-mail address removed)
Subject: perl AUTOLOADER vs c++
Date: Fri, 15 Oct 2004 13:28:18 -0500
From: Billy N. Patton <[email protected]>
Organization: Texas Instruments
Newsgroups: alt.comp.lang.learn.c-c++
Assume I have a perl class/module called Ui.
The need for this is to have ALL io the exact same.
If I need a new switch my command line parser will just add it to the
hash of the blessed class. I don't have to export the method to get to
the data I can simple call the class with the proper name and the
autoload will take care of the rest, With a little coding in the auto
loader.
Ex:
if I pass in -abc some_value.
the command line parser will set in my hash 'abc' => 'some_value'
With out the autoloader I have no access unless I've exported the hash
But with the autoloader I can do
$val = $ui->abc();
I've created a Ui class in C++. All the variables are declared as
static. I only want one copy of each variable.
Currently, I'm having to do a get and a set type method for each
variable in my private section.
Does c++ have something similar to perls autoloader?
THis would greatly increase the functionality of my Ui class.
Dynamic switches and methods
--
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodlogy Group
Dallas, Texas, 214-480-4455, (e-mail address removed)
--
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodlogy Group
Dallas, Texas, 214-480-4455, (e-mail address removed)