diff options
author | sbw1 <sbw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-09 15:07:50 +0000 |
---|---|---|
committer | sbw1 <sbw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-09 15:07:50 +0000 |
commit | 689c61bde5fb1d5765545d2960e0e5ea1768097a (patch) | |
tree | fa3a8264a53ff1f6a341f1ed354d96de1ab7eceb /TAO/orbsvcs/tests/Trading/Service_Type_Exporter.h | |
parent | 8353ce87f087c901fad79af8e46a6531d7fc2a50 (diff) | |
download | ATCD-689c61bde5fb1d5765545d2960e0e5ea1768097a.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/orbsvcs/tests/Trading/Service_Type_Exporter.h')
-rw-r--r-- | TAO/orbsvcs/tests/Trading/Service_Type_Exporter.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/Trading/Service_Type_Exporter.h b/TAO/orbsvcs/tests/Trading/Service_Type_Exporter.h new file mode 100644 index 00000000000..6a9fd615794 --- /dev/null +++ b/TAO/orbsvcs/tests/Trading/Service_Type_Exporter.h @@ -0,0 +1,70 @@ +// $Id$ + +// ======================================================================== +// +// = FILE +// Offer_Exporter.h +// +// = DESCRIPTION +// Class that tests the Trading Service's Service Type Repository +// +// = AUTHOR +// Seth Widoff <sbw1@cs.wustl.edu> +// +// ======================================================================= + +#ifndef TAO_SERVICE_TYPE_EXPORTER_H +#define TAO_SERVICE_TYPE_EXPORTER_H + +#include "TT_Info.h" + +class TAO_Service_Type_Exporter +{ +public: + + typedef CosTradingRepos::ServiceTypeRepository SERVICE_TYPE_REPOS; + + TAO_Service_Type_Exporter (CosTradingRepos::ServiceTypeRepository_ptr str); + + void remove_all_types (CORBA::Environment& _env) + TAO_THROW_SPEC ((CORBA::SystemException, + CosTrading::IllegalServiceType, + CosTrading::UnknownServiceType, + SERVICE_TYPE_REPOS::HasSubTypes)); + + void add_all_types (CORBA::Environment& _env) + TAO_THROW_SPEC ((CORBA::SystemException, + CosTrading::IllegalServiceType, + SERVICE_TYPE_REPOS::ServiceTypeExists, + SERVICE_TYPE_REPOS::InterfaceTypeMismatch, + CosTrading::IllegalPropertyName, + CosTrading::DuplicatePropertyName, + SERVICE_TYPE_REPOS::ValueTypeRedefinition, + CosTrading::UnknownServiceType, + SERVICE_TYPE_REPOS::DuplicateServiceTypeName)); + + void list_all_types (CORBA::Environment& _env) + TAO_THROW_SPEC ((CORBA::SystemException)); + + void describe_all_types (CORBA::Environment& _env) + TAO_THROW_SPEC ((CORBA::SystemException, + CosTrading::IllegalServiceType, + CosTrading::UnknownServiceType)); + + void fully_describe_all_types (CORBA::Environment& _env) + TAO_THROW_SPEC ((CORBA::SystemException, + CosTrading::IllegalServiceType, + CosTrading::UnknownServiceType)); + +private: + + void create_types (void); + + void dump_typestruct (const char* typename, + const SERVICE_TYPE_REPOS::TypeStruct& type_struct) const; + + CosTradingRepos::ServiceTypeRepository_var repos_; + SERVICE_TYPE_REPOS::TypeStruct type_structs_[NUM_TYPES]; +}; + +#endif /* TAO_SERVICE_TYPE_EXPORTER_H */ |