summaryrefslogtreecommitdiff
path: root/TAO/examples
diff options
context:
space:
mode:
authorcrodrigu <crodrigu@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-02-02 02:56:08 +0000
committercrodrigu <crodrigu@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-02-02 02:56:08 +0000
commit5c5a2e149d8e3efa2cb499f7c7d85e697ef76713 (patch)
tree949241f27e9e1a7e12fdac479fb13a79b52b96b2 /TAO/examples
parent1deaaa4255d4c7b46e3d8619728480eb00a54ef8 (diff)
downloadATCD-5c5a2e149d8e3efa2cb499f7c7d85e697ef76713.tar.gz
ChangeLogTag: Fri Feb 1 21:53:45 2002 Craig Rodrigues <crodrigu@bbn.com>
Diffstat (limited to 'TAO/examples')
-rw-r--r--TAO/examples/OBV/Typed_Events/Event_Types_impl.cpp22
-rw-r--r--TAO/examples/OBV/Typed_Events/Event_Types_impl.h69
2 files changed, 69 insertions, 22 deletions
diff --git a/TAO/examples/OBV/Typed_Events/Event_Types_impl.cpp b/TAO/examples/OBV/Typed_Events/Event_Types_impl.cpp
index ec5b27fb50b..38024ce373d 100644
--- a/TAO/examples/OBV/Typed_Events/Event_Types_impl.cpp
+++ b/TAO/examples/OBV/Typed_Events/Event_Types_impl.cpp
@@ -19,6 +19,7 @@ Event_impl::~Event_impl ()
void
Event_impl::do_print (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
ACE_DEBUG((LM_DEBUG, "(time %d origin %d) ",
(CORBA::ULong) this->time_(),
@@ -55,6 +56,7 @@ Temperature_impl::~Temperature_impl ()
void
Temperature_impl::do_print (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
// The timestamp
Event_impl::do_print (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -92,6 +94,7 @@ Position_impl::~Position_impl ()
void
Position_impl::do_print (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
// The timestamp
Event_impl::do_print (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -111,31 +114,37 @@ Position_impl::do_print (ACE_ENV_SINGLE_ARG_DECL)
}
CORBA::Float Position_impl::x (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC(( CORBA::SystemException ))
{
return this->xyz()[0];
}
void Position_impl::x (CORBA::Float x ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC(( CORBA::SystemException ))
{
this->xyz()[0] = x;
}
CORBA::Float Position_impl::y (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC(( CORBA::SystemException ))
{
return this->xyz()[1];
}
void Position_impl::y (CORBA::Float y ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC(( CORBA::SystemException ))
{
this->xyz()[1] = y;
}
CORBA::Float Position_impl::z (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC(( CORBA::SystemException ))
{
return this->xyz()[2];
}
void Position_impl::z (CORBA::Float z ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC(( CORBA::SystemException ))
{
this->xyz()[2] = z;
}
@@ -170,6 +179,7 @@ Log_Msg_impl::~Log_Msg_impl ()
void
Log_Msg_impl::do_print (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
// The timestamp
Event_impl::do_print (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -222,12 +232,14 @@ Event_List_Link_impl::~Event_List_Link_impl ()
Event*
Event_List_Link_impl::get_event (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
return this->my_event ();
}
Event_List_Link*
Event_List_Link_impl::get_next_link (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC(( CORBA::SystemException ))
{
return this->next ();
}
@@ -235,6 +247,7 @@ Event_List_Link_impl::get_next_link (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
void
Event_List_Link_impl::attach_next_link (Event_List_Link *n
ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC(( CORBA::SystemException ))
{
this->next (n);
}
@@ -265,6 +278,7 @@ Event_List_impl::~Event_List_impl ()
void
Event_List_impl::store_event (Event* e ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC(( CORBA::SystemException ))
{
// This operation should perform atomically and should
// guard against the access to the list from another thread.
@@ -407,6 +421,7 @@ Temperature_Criterion_impl::~Temperature_Criterion_impl ()
CORBA::Boolean
Temperature_Criterion_impl::is_critical (Event* e
ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC(( CORBA::SystemException ))
{
// Downcast to a temperature.
Temperature* t = Temperature::_downcast (e);
@@ -424,6 +439,7 @@ Temperature_Criterion_impl::is_critical (Event* e
void
Temperature_Criterion_impl::do_print (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
ACE_DEBUG((LM_DEBUG, "Alarm boundary for events with origin id %d is\n",
this->origin_id_ () ));
@@ -463,6 +479,7 @@ Position_Criterion_impl::~Position_Criterion_impl ()
CORBA::Boolean
Position_Criterion_impl::is_critical (Event* e ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
Position* p = Position::_downcast (e);
// Is Event really a Position ?
@@ -484,6 +501,7 @@ Position_Criterion_impl::is_critical (Event* e ACE_ENV_ARG_DECL_NOT_USED)
void
Position_Criterion_impl::do_print (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
ACE_DEBUG((LM_DEBUG,
"Alarm boundary for events with origin id %d is the box\n",
@@ -517,6 +535,7 @@ Log_Msg_Criterion_impl::~Log_Msg_Criterion_impl ()
CORBA::Boolean
Log_Msg_Criterion_impl::is_critical (Event* e
ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
Log_Msg* lm = Log_Msg::_downcast (e);
@@ -531,6 +550,7 @@ Log_Msg_Criterion_impl::is_critical (Event* e
void
Log_Msg_Criterion_impl::do_print (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
ACE_DEBUG((LM_DEBUG,
"All log messages with urgency greater zero are registered.\n" ));
@@ -566,6 +586,7 @@ Criterion_List_impl::~Criterion_List_impl ()
void
Criterion_List_impl::store_criterion (Criterion *c
ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
if (!my_list ())
{
@@ -579,6 +600,7 @@ Criterion_List_impl::store_criterion (Criterion *c
CORBA::Boolean
Criterion_List_impl::is_critical (Event *e ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC (( CORBA::SystemException ))
{
// Try all criterions. Walking the list is efficient enough for
// demonstration.
diff --git a/TAO/examples/OBV/Typed_Events/Event_Types_impl.h b/TAO/examples/OBV/Typed_Events/Event_Types_impl.h
index d330a23f372..639dda3ddeb 100644
--- a/TAO/examples/OBV/Typed_Events/Event_Types_impl.h
+++ b/TAO/examples/OBV/Typed_Events/Event_Types_impl.h
@@ -48,7 +48,8 @@ class Event_impl : public virtual OBV_Event,
Event_impl ();
virtual ~Event_impl ();
- virtual void do_print (ACE_ENV_SINGLE_ARG_DECL);
+ virtual void do_print (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
// Implementation of the do_print () operation the valuetype should have.
// All operations in valuetypes are virtual.
@@ -119,7 +120,8 @@ public:
virtual ~Temperature_impl ();
- virtual void do_print (ACE_ENV_SINGLE_ARG_DECL);
+ virtual void do_print (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
// Overrides Event_impl::do_print (). Note that a new declaration
// in IDL in a derived class is not allowed.
};
@@ -145,15 +147,22 @@ public:
Position_impl (Point &p);
virtual ~Position_impl ();
- virtual CORBA::Float x (ACE_ENV_SINGLE_ARG_DECL);
- virtual void x (CORBA::Float ACE_ENV_ARG_DECL);
- virtual CORBA::Float y (ACE_ENV_SINGLE_ARG_DECL);
- virtual void y (CORBA::Float ACE_ENV_ARG_DECL);
- virtual CORBA::Float z (ACE_ENV_SINGLE_ARG_DECL);
- virtual void z (CORBA::Float ACE_ENV_ARG_DECL);
+ virtual CORBA::Float x (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
+ virtual void x (CORBA::Float ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
+ virtual CORBA::Float y (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
+ virtual void y (CORBA::Float ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
+ virtual CORBA::Float z (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
+ virtual void z (CORBA::Float ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
//These are the attributes
- virtual void do_print (ACE_ENV_SINGLE_ARG_DECL);
+ virtual void do_print (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
};
class Position_factory : public CORBA::ValueFactoryBase
@@ -178,7 +187,8 @@ public:
Log_Msg_impl (CORBA::Short urgency_p, const char *message_p);
virtual ~Log_Msg_impl ();
- virtual void do_print (ACE_ENV_SINGLE_ARG_DECL);
+ virtual void do_print (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
};
class Log_Msg_factory : public CORBA::ValueFactoryBase
@@ -210,12 +220,15 @@ class Event_List_Link_impl : public virtual OBV_Event_List_Link,
Event_List_Link_impl (Event *e);
virtual ~Event_List_Link_impl ();
- Event *get_event (ACE_ENV_SINGLE_ARG_DECL);
+ Event *get_event (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
private:
- Event_List_Link *get_next_link (ACE_ENV_SINGLE_ARG_DECL);
+ Event_List_Link *get_next_link (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC(( CORBA::SystemException ));
- void attach_next_link (Event_List_Link * chain ACE_ENV_ARG_DECL);
+ void attach_next_link (Event_List_Link * chain ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC(( CORBA::SystemException ));
// Attach a chain at the end.
};
@@ -239,7 +252,8 @@ class Event_List_impl : public virtual OBV_Event_List,
Event_List_impl ();
virtual ~Event_List_impl ();
- void store_event (Event* e ACE_ENV_ARG_DECL);
+ void store_event (Event* e ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC(( CORBA::SystemException ));
Event_List_Link *get_first_link(ACE_ENV_SINGLE_ARG_DECL);
// The iterator needs it.
@@ -317,8 +331,11 @@ public:
virtual ~Temperature_Criterion_impl ();
- CORBA::Boolean is_critical (Event* e ACE_ENV_ARG_DECL);
- virtual void do_print (ACE_ENV_SINGLE_ARG_DECL);
+ CORBA::Boolean is_critical (Event* e ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
+
+ virtual void do_print (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
};
class Temperature_Criterion_factory : public CORBA::ValueFactoryBase
@@ -343,8 +360,11 @@ public:
Position *tr);
virtual ~Position_Criterion_impl ();
- CORBA::Boolean is_critical (Event* e ACE_ENV_ARG_DECL);
- virtual void do_print (ACE_ENV_SINGLE_ARG_DECL);
+ CORBA::Boolean is_critical (Event* e ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
+
+ virtual void do_print (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
};
class Position_Criterion_factory : public CORBA::ValueFactoryBase
@@ -365,8 +385,11 @@ public:
Log_Msg_Criterion_impl ();
virtual ~Log_Msg_Criterion_impl ();
- CORBA::Boolean is_critical (Event* e ACE_ENV_ARG_DECL);
- virtual void do_print (ACE_ENV_SINGLE_ARG_DECL);
+ CORBA::Boolean is_critical (Event* e ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
+
+ virtual void do_print (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
};
class Log_Msg_Criterion_factory : public CORBA::ValueFactoryBase
@@ -385,8 +408,10 @@ class Criterion_List_impl : public virtual OBV_Criterion_List,
Criterion_List_impl ();
virtual ~Criterion_List_impl ();
- void store_criterion (Criterion *c ACE_ENV_ARG_DECL);
- CORBA::Boolean is_critical (Event *e ACE_ENV_ARG_DECL);
+ void store_criterion (Criterion *c ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
+ CORBA::Boolean is_critical (Event *e ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC (( CORBA::SystemException ));
};