Go to the documentation of this file.00001
00002
00003 #include "ace/Monitor_Control_Types.h"
00004
00005 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
00006
00007 #include "ace/Monitor_Control_Action.h"
00008
00009 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00010
00011 namespace ACE
00012 {
00013 namespace Monitor_Control
00014 {
00015 Monitor_Control_Types::Data::Data (
00016 Monitor_Control_Types::Information_Type type)
00017 : timestamp_ (ACE_Time_Value::zero)
00018 , value_ (0.0)
00019 , type_ (type)
00020 , index_ (0UL)
00021 , minimum_set_ (false)
00022 , minimum_ (0.0)
00023 , maximum_ (0.0)
00024 , sum_ (0.0)
00025 , sum_of_squares_ (0.0)
00026 , last_ (0.0)
00027 {}
00028
00029
00030
00031 Monitor_Control_Types::Constraint::Constraint (void)
00032 : control_action (0)
00033 {}
00034
00035 Monitor_Control_Types::Constraint::Constraint (const Constraint& rhs)
00036 : expr (rhs.expr),
00037 control_action (rhs.control_action)
00038 {
00039 if (control_action != 0)
00040 {
00041 control_action->add_ref ();
00042 }
00043 }
00044
00045 Monitor_Control_Types::Constraint::~Constraint (void)
00046 {
00047 if (this->control_action != 0)
00048 {
00049 this->control_action->remove_ref ();
00050 }
00051 }
00052
00053 Monitor_Control_Types::Constraint&
00054 Monitor_Control_Types::Constraint::operator= (const Constraint& rhs)
00055 {
00056 if (this != &rhs)
00057 {
00058 if (this->control_action != 0)
00059 {
00060 this->control_action->remove_ref ();
00061 }
00062
00063 this->expr = rhs.expr;
00064 this->control_action = rhs.control_action;
00065
00066 if (this->control_action != 0)
00067 {
00068 this->control_action->add_ref ();
00069 }
00070 }
00071
00072 return *this;
00073 }
00074 }
00075 }
00076
00077 ACE_END_VERSIONED_NAMESPACE_DECL
00078
00079 #endif
00080
00081