diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-27 01:38:51 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-27 01:38:51 +0000 |
commit | 5b0cb22699b2fd8446329ce24fe6842b761191d9 (patch) | |
tree | 93904b4aa5848b8bcd58958e81ecbb4223da2f22 /TAO/tao/Tagged_Components.cpp | |
parent | 3f78ee5939dec693fdf68046bda2e011b286fad9 (diff) | |
download | ATCD-5b0cb22699b2fd8446329ce24fe6842b761191d9.tar.gz |
ChangeLogTag:Thu Aug 26 20:34:54 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Tagged_Components.cpp')
-rw-r--r-- | TAO/tao/Tagged_Components.cpp | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/TAO/tao/Tagged_Components.cpp b/TAO/tao/Tagged_Components.cpp index 64b8114eaa1..5ff6c356e06 100644 --- a/TAO/tao/Tagged_Components.cpp +++ b/TAO/tao/Tagged_Components.cpp @@ -65,21 +65,18 @@ TAO_Tagged_Components::set_code_sets_i ( } void -TAO_Tagged_Components::set_tao_priority_range (CORBA::Short min_p, - CORBA::Short max_p) +TAO_Tagged_Components::set_tao_priority (CORBA::Short p) { - this->tao_priority_min_ = min_p; - this->tao_priority_max_ = max_p; - this->tao_priority_range_set_ = 1; + this->tao_priority_ = p; + this->tao_priority_set_ = 1; TAO_OutputCDR cdr; cdr << ACE_OutputCDR::from_boolean (TAO_ENCAP_BYTE_ORDER); cdr << this->orb_type_; - cdr << this->tao_priority_min_; - cdr << this->tao_priority_max_; + cdr << this->tao_priority_; - this->set_component_i (TAO_TAG_PRIORITY_RANGE, cdr); + this->set_component_i (TAO_TAG_PRIORITY, cdr); } // **************************************************************** @@ -162,18 +159,15 @@ TAO_Tagged_Components::set_known_component_i ( ci.ForWcharData); this->code_sets_set_ = 1; } - else if (component.tag == TAO_TAG_PRIORITY_RANGE) + else if (component.tag == TAO_TAG_PRIORITY) { - CORBA::Short min_p, max_p; + CORBA::Short p; - if ((cdr >> min_p) != 0 - || (cdr >> max_p) != 0 - || min_p > max_p) + if ((cdr >> p) != 0) return; - this->tao_priority_min_ = min_p; - this->tao_priority_max_ = max_p; - this->tao_priority_range_set_ = 1; + this->tao_priority_ = p; + this->tao_priority_set_ = 1; } } @@ -262,7 +256,7 @@ TAO_Tagged_Components::decode (TAO_InputCDR& cdr) // Mark the well-known components as removed this->orb_type_set_ = 0; this->code_sets_set_ = 0; - this->tao_priority_range_set_ = 0; + this->tao_priority_set_ = 0; if ((cdr >> this->components_) == 0) return 0; |