diff options
author | sbw1 <sbw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-11 03:06:59 +0000 |
---|---|---|
committer | sbw1 <sbw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-11 03:06:59 +0000 |
commit | a660d76f0da77c8cd44dd18f46617ae48dbc347f (patch) | |
tree | 42ac182c05085e4cce4b96ea5375f4479c564123 /TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp | |
parent | ba7ff7ebad41ead734f9b3d15c58ddd9d1c7fec9 (diff) | |
download | ATCD-a660d76f0da77c8cd44dd18f46617ae48dbc347f.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp b/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp index dc010e4fb88..d6f660e5819 100644 --- a/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp +++ b/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp @@ -414,24 +414,24 @@ TAO_Offer_Exporter::create_offers (void) this->props_plotters_[i].length (11); - this->props_plotters_[i][0].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::NAME]); - this->props_plotters_[i][0].value <<= CORBA::string_dup (name); - this->props_plotters_[i][1].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::LOCATION]); + this->props_plotters_[i][0].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::NAME]; + this->props_plotters_[i][0].value <<= name; + this->props_plotters_[i][1].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::LOCATION]; this->props_plotters_[i][1].value <<= TT_Info::LOCATIONS[i]; - this->props_plotters_[i][2].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::DESCRIPTION]); - this->props_plotters_[i][2].value <<= CORBA::string_dup (description); - this->props_plotters_[i][3].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::HOST_NAME]); - this->props_plotters_[i][3].value <<= CORBA::string_dup (hostname); - this->props_plotters_[i][4].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::TRADER_NAME]); + this->props_plotters_[i][2].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::DESCRIPTION]; + this->props_plotters_[i][2].value <<= description; + this->props_plotters_[i][3].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::HOST_NAME]; + this->props_plotters_[i][3].value <<= hostname; + this->props_plotters_[i][4].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::TRADER_NAME]; this->props_plotters_[i][4].value <<= "Default"; - this->props_plotters_[i][5].name = CORBA::string_dup (TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_NUM_COLORS]); + this->props_plotters_[i][5].name = TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_NUM_COLORS]; this->props_plotters_[i][5].value <<= (CORBA::Long)(i * 2); - this->props_plotters_[i][6].name = CORBA::string_dup (TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_AUTO_LOADING]); + this->props_plotters_[i][6].name = TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_AUTO_LOADING]; this->props_plotters_[i][6].value <<= CORBA::Any::from_boolean ((CORBA::Boolean) (i % 2)); - this->props_plotters_[i][7].name = CORBA::string_dup (TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_COST_PER_PAGE]); + this->props_plotters_[i][7].name = TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_COST_PER_PAGE]; this->props_plotters_[i][7].value <<= (CORBA::Float) i; - this->props_plotters_[i][8].name = CORBA::string_dup (TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_MODEL_NUMBER]); - this->props_plotters_[i][8].value <<= CORBA::string_dup (TT_Info::MODEL_NUMBERS[i]); + this->props_plotters_[i][8].name = TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_MODEL_NUMBER]; + this->props_plotters_[i][8].value <<= TT_Info::MODEL_NUMBERS[i]; this->props_plotters_[i][9].name = TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_USER_QUEUE]; this->props_plotters_[i][9].value <<= *dp_user_queue; this->props_plotters_[i][10].name = TT_Info::PLOTTER_PROPERTY_NAMES[TT_Info::PLOTTER_FILE_SIZES_PENDING]; @@ -473,25 +473,25 @@ TAO_Offer_Exporter::create_offers (void) CORBA::B_TRUE); this->props_printers_[i].length (12); - this->props_printers_[i][0].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::NAME]); - this->props_printers_[i][0].value <<= CORBA::string_dup (name); - this->props_printers_[i][1].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::LOCATION]); + this->props_printers_[i][0].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::NAME]; + this->props_printers_[i][0].value <<= name; + this->props_printers_[i][1].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::LOCATION]; this->props_printers_[i][1].value <<= TT_Info::LOCATIONS[i]; - this->props_printers_[i][2].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::DESCRIPTION]); - this->props_printers_[i][2].value <<= CORBA::string_dup (description); - this->props_printers_[i][3].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::HOST_NAME]); - this->props_printers_[i][3].value <<= CORBA::string_dup (hostname); - this->props_printers_[i][4].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::TRADER_NAME]); + this->props_printers_[i][2].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::DESCRIPTION]; + this->props_printers_[i][2].value <<= description; + this->props_printers_[i][3].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::HOST_NAME]; + this->props_printers_[i][3].value <<= hostname; + this->props_printers_[i][4].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::TRADER_NAME]; this->props_printers_[i][4].value <<= "Default"; - this->props_printers_[i][5].name = CORBA::string_dup (TT_Info::PRINTER_PROPERTY_NAMES[TT_Info::PRINTER_COLOR]); + this->props_printers_[i][5].name = TT_Info::PRINTER_PROPERTY_NAMES[TT_Info::PRINTER_COLOR]; this->props_printers_[i][5].value <<= CORBA::Any::from_boolean ((CORBA::Boolean) (i % 2)); - this->props_printers_[i][6].name = CORBA::string_dup (TT_Info::PRINTER_PROPERTY_NAMES[TT_Info::PRINTER_DOUBLE_SIDED]); + this->props_printers_[i][6].name = TT_Info::PRINTER_PROPERTY_NAMES[TT_Info::PRINTER_DOUBLE_SIDED]; this->props_printers_[i][6].value <<= CORBA::Any::from_boolean ((CORBA::Boolean) ((i + 1) % 2)); - this->props_printers_[i][7].name = CORBA::string_dup (TT_Info::PRINTER_PROPERTY_NAMES[TT_Info::PRINTER_COST_PER_PAGE]); + this->props_printers_[i][7].name = TT_Info::PRINTER_PROPERTY_NAMES[TT_Info::PRINTER_COST_PER_PAGE]; this->props_printers_[i][7].value <<= (CORBA::Float) i; - this->props_printers_[i][8].name = CORBA::string_dup (TT_Info::PRINTER_PROPERTY_NAMES[TT_Info::PRINTER_MODEL_NUMBER]); - this->props_printers_[i][8].value <<= CORBA::string_dup (TT_Info::MODEL_NUMBERS[i]); - this->props_printers_[i][9].name = CORBA::string_dup (TT_Info::PRINTER_PROPERTY_NAMES[TT_Info::PRINTER_PAGES_PER_SEC]); + this->props_printers_[i][8].name = TT_Info::PRINTER_PROPERTY_NAMES[TT_Info::PRINTER_MODEL_NUMBER]; + this->props_printers_[i][8].value <<= TT_Info::MODEL_NUMBERS[i]; + this->props_printers_[i][9].name = TT_Info::PRINTER_PROPERTY_NAMES[TT_Info::PRINTER_PAGES_PER_SEC]; this->props_printers_[i][9].value <<= (CORBA::UShort) i; this->props_printers_[i][10].name = TT_Info::PRINTER_PROPERTY_NAMES[TT_Info::PRINTER_USER_QUEUE]; this->props_printers_[i][10].value <<= *dp_user_queue; @@ -518,19 +518,19 @@ TAO_Offer_Exporter::create_offers (void) CORBA::B_TRUE); this->props_fs_[i].length (8); - this->props_fs_[i][0].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::NAME]); - this->props_fs_[i][0].value <<= CORBA::string_dup (name); - this->props_fs_[i][1].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::LOCATION]); - this->props_fs_[i][1].value <<= CORBA::string_dup (TT_Info::LOCATIONS[i]); - this->props_fs_[i][2].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::DESCRIPTION]); - this->props_fs_[i][2].value <<= CORBA::string_dup (description); - this->props_fs_[i][3].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::HOST_NAME]); - this->props_fs_[i][3].value <<= CORBA::string_dup (hostname); - this->props_fs_[i][4].name = CORBA::string_dup (TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::TRADER_NAME]); + this->props_fs_[i][0].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::NAME]; + this->props_fs_[i][0].value <<= name; + this->props_fs_[i][1].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::LOCATION]; + this->props_fs_[i][1].value <<= TT_Info::LOCATIONS[i]; + this->props_fs_[i][2].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::DESCRIPTION]; + this->props_fs_[i][2].value <<= description; + this->props_fs_[i][3].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::HOST_NAME]; + this->props_fs_[i][3].value <<= hostname; + this->props_fs_[i][4].name = TT_Info::REMOTE_IO_PROPERTY_NAMES[TT_Info::TRADER_NAME]; this->props_fs_[i][4].value <<= "Default"; - this->props_fs_[i][5].name = CORBA::string_dup (TT_Info::FILESYSTEM_PROPERTY_NAMES[TT_Info::DISK_SIZE]); + this->props_fs_[i][5].name = TT_Info::FILESYSTEM_PROPERTY_NAMES[TT_Info::DISK_SIZE]; this->props_fs_[i][5].value <<= (CORBA::ULong) (i * 2000000); - this->props_fs_[i][6].name = CORBA::string_dup (TT_Info::FILESYSTEM_PROPERTY_NAMES[TT_Info::PERMISSION_LEVEL]); + this->props_fs_[i][6].name = TT_Info::FILESYSTEM_PROPERTY_NAMES[TT_Info::PERMISSION_LEVEL]; this->props_fs_[i][6].value <<= (CORBA::UShort) (i + 1); this->props_fs_[i][7].name = TT_Info::FILESYSTEM_PROPERTY_NAMES[TT_Info::SPACE_REMAINING]; this->props_fs_[i][7].value <<= *dp_space_left; |