1 // $Id: Monitor_Control_Types.cpp 82328 2008-07-15 17:20:17Z parsons $
3 #include "ace/Monitor_Control_Types.h"
5 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
7 #include "ace/Monitor_Control_Action.h"
9 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
13 namespace Monitor_Control
15 Monitor_Control_Types::Data::Data (
16 Monitor_Control_Types::Information_Type type
)
17 : timestamp_ (ACE_Time_Value::zero
)
21 , minimum_set_ (false)
25 , sum_of_squares_ (0.0)
29 //=============================================================
31 Monitor_Control_Types::Constraint::Constraint (void)
35 Monitor_Control_Types::Constraint::Constraint (const Constraint
& rhs
)
37 control_action (rhs
.control_action
)
39 if (control_action
!= 0)
41 control_action
->add_ref ();
45 Monitor_Control_Types::Constraint::~Constraint (void)
47 if (this->control_action
!= 0)
49 this->control_action
->remove_ref ();
53 Monitor_Control_Types::Constraint
&
54 Monitor_Control_Types::Constraint::operator= (const Constraint
& rhs
)
56 if (this->control_action
!= 0)
58 this->control_action
->remove_ref ();
61 this->expr
= rhs
.expr
;
62 this->control_action
= rhs
.control_action
;
64 if (this->control_action
!= 0)
66 this->control_action
->add_ref ();
74 ACE_END_VERSIONED_NAMESPACE_DECL
76 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */