diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
commit | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch) | |
tree | da50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/orbsvcs/tests/Notify/lib/StructuredEvent.cpp | |
parent | 0e555b9150d38e3b3473ba325b56db2642e6352b (diff) | |
download | ATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/lib/StructuredEvent.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/Notify/lib/StructuredEvent.cpp | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/TAO/orbsvcs/tests/Notify/lib/StructuredEvent.cpp b/TAO/orbsvcs/tests/Notify/lib/StructuredEvent.cpp deleted file mode 100644 index 6c6a9882916..00000000000 --- a/TAO/orbsvcs/tests/Notify/lib/StructuredEvent.cpp +++ /dev/null @@ -1,88 +0,0 @@ -// $Id$ - -#include "StructuredEvent.h" - -ACE_RCSID(RT_Notify, TAO_Notify_Tests_StructuredEvent, "$Id$") - -TAO_Notify_Tests_StructuredEvent::TAO_Notify_Tests_StructuredEvent (void) -{ -} - -TAO_Notify_Tests_StructuredEvent::~TAO_Notify_Tests_StructuredEvent () -{ -} - -TAO_Notify_Tests_StructuredEvent::TAO_Notify_Tests_StructuredEvent (const char* name) -{ - event_.header.fixed_header.event_name = CORBA::string_dup(name); -} - -TAO_Notify_Tests_StructuredEvent::TAO_Notify_Tests_StructuredEvent (const char* domain, const char* type) -{ - event_.header.fixed_header.event_type.domain_name = CORBA::string_dup(domain); - event_.header.fixed_header.event_type.type_name = CORBA::string_dup(type); -} - -TAO_Notify_Tests_StructuredEvent::TAO_Notify_Tests_StructuredEvent (const char* name, const char* domain, const char* type) -{ - event_.header.fixed_header.event_name = CORBA::string_dup(name); - event_.header.fixed_header.event_type.domain_name = CORBA::string_dup(domain); - event_.header.fixed_header.event_type.type_name = CORBA::string_dup(type); -} - -void -TAO_Notify_Tests_StructuredEvent::name (const char* name) -{ - event_.header.fixed_header.event_name = CORBA::string_dup(name); -} - -void -TAO_Notify_Tests_StructuredEvent::type (const char* domain, const char* type) -{ - event_.header.fixed_header.event_type.domain_name = CORBA::string_dup(domain); - event_.header.fixed_header.event_type.type_name = CORBA::string_dup(type); -} - -const char* -TAO_Notify_Tests_StructuredEvent::type (void) -{ - return event_.header.fixed_header.event_type.type_name; -} - -void -TAO_Notify_Tests_StructuredEvent::opt_header (const char* name, CORBA::Any& value) -{ - CosNotification::PropertySeq& opt = event_.header.variable_header; - opt.length (opt.length () + 1); - - opt[opt.length () - 1].name = CORBA::string_dup (name); - opt[opt.length () - 1].value = value; -} - -void -TAO_Notify_Tests_StructuredEvent::filter (const char* name, CORBA::Any& value) -{ - CosNotification::PropertySeq& filter = event_.filterable_data; - filter.length (filter.length () + 1); - - filter[filter.length () - 1].name = CORBA::string_dup (name); - filter[filter.length () - 1].value = value; -} - -void -TAO_Notify_Tests_StructuredEvent::qos (const char* name, CORBA::Any& value) -{ - this->opt_header (name, value); -} - -void -TAO_Notify_Tests_StructuredEvent::payload (CORBA::Any& value) -{ - event_.remainder_of_body = value; -} - -CosNotification::StructuredEvent& -TAO_Notify_Tests_StructuredEvent::event (void) -{ - return this->event_; -} |