diff options
author | thrall <thrall@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-08-09 01:44:38 +0000 |
---|---|---|
committer | thrall <thrall@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-08-09 01:44:38 +0000 |
commit | abca04a2ff318f7c10f9f2c7e3acc46863669a96 (patch) | |
tree | 3b4a67231d5fc632dded2c25a6e5db3eb78ffc33 | |
parent | 73f1510a69cb83fd5cb7eaf60a9df4b2d767fd47 (diff) | |
download | ATCD-abca04a2ff318f7c10f9f2c7e3acc46863669a96.tar.gz |
Remoted redundant QoSVector typedef from Configurator_SyntaxHandler
-rw-r--r-- | TAO/orbsvcs/examples/RtEC/ECConfigurator/Configurator_SyntaxHandler.cpp | 30 | ||||
-rw-r--r-- | TAO/orbsvcs/examples/RtEC/ECConfigurator/Configurator_SyntaxHandler.h | 1 |
2 files changed, 15 insertions, 16 deletions
diff --git a/TAO/orbsvcs/examples/RtEC/ECConfigurator/Configurator_SyntaxHandler.cpp b/TAO/orbsvcs/examples/RtEC/ECConfigurator/Configurator_SyntaxHandler.cpp index 26f46560512..fa14f4333c9 100644 --- a/TAO/orbsvcs/examples/RtEC/ECConfigurator/Configurator_SyntaxHandler.cpp +++ b/TAO/orbsvcs/examples/RtEC/ECConfigurator/Configurator_SyntaxHandler.cpp @@ -383,7 +383,7 @@ Configurator_SyntaxHandler::parseConsumer (Consumer* vs, void* arg) } // visit Consumer children - QoSVector subs; + Kokyu_EC::QoSVector subs; vs->subscriptions->visit(this,&subs); SupplierVector dependants; //dependants push_back @@ -398,10 +398,10 @@ Configurator_SyntaxHandler::parseConsumer (Consumer* vs, void* arg) // TODO: negotiate event types ECSupplier::EventTypeVector subtypes; - QoSVector::iterator subiter = subs.begin(); + Kokyu_EC::QoSVector::iterator subiter = subs.begin(); for (; subiter != subs.end(); ++subiter) { - QoSVector::value_type qos = *subiter; + Kokyu_EC::QoSVector::value_type qos = *subiter; subtypes.push_back(qos.type); } @@ -419,7 +419,7 @@ Configurator_SyntaxHandler::parseConsumer (Consumer* vs, void* arg) ACE_ASSERT(ecsupplier); // shouldn't have got here with no Supplier //TODO: multi-type consumer subs - QoSVector::value_type qos = subs[0]; //for now just use this + Kokyu_EC::QoSVector::value_type qos = subs[0]; //for now just use this // if multiple timeouts, this won't reg supplier multiple times consumer->pushDependant(ecsupplier); ec->add_consumer_with_supplier(consumer, @@ -446,14 +446,14 @@ int Configurator_SyntaxHandler::parseSubscriptions (Subscriptions* vs, void* arg) ACE_THROW_SPEC ((ACEXML_SAXException)) { - QoSVector *subs = static_cast<QoSVector*> (arg); + Kokyu_EC::QoSVector *subs = static_cast<Kokyu_EC::QoSVector*> (arg); ACE_ASSERT(subs); // parse Subscriptions EventNameVector::iterator eniter = vs->eventnames.begin(); for (; eniter != vs->eventnames.end(); eniter++) { - QoSVector::value_type subqos; + Kokyu_EC::QoSVector::value_type subqos; ACE_DEBUG ((LM_DEBUG,ACE_TEXT("Subscription %s\n"),(*eniter)->str.c_str())); if (this->eventqostable.find((*eniter)->str,subqos)) { @@ -507,10 +507,10 @@ Configurator_SyntaxHandler::parseSupplier (Supplier* vs, void* arg) } // visit Supplier children - QoSVector pubs; + Kokyu_EC::QoSVector pubs; vs->publications->visit(this,&pubs); - QoSVector trigs; + Kokyu_EC::QoSVector trigs; vs->triggers->visit(this,&trigs); // Register Supplier @@ -524,7 +524,7 @@ Configurator_SyntaxHandler::parseSupplier (Supplier* vs, void* arg) ECSupplier::EventType type = 100 * vs->id; ECSupplier::EventTypeVector pubtypes; - QoSVector::iterator pubiter = pubs.begin(); + Kokyu_EC::QoSVector::iterator pubiter = pubs.begin(); for (; pubiter != pubs.end(); ++pubiter,++type) { pubtypes.push_back(type); @@ -535,10 +535,10 @@ Configurator_SyntaxHandler::parseSupplier (Supplier* vs, void* arg) ECSupplier(vs->id,pubtypes),-1); //for each trigger timeout, set up a timer - QoSVector::iterator qositer = trigs.begin(); + Kokyu_EC::QoSVector::iterator qositer = trigs.begin(); for (; qositer != trigs.end(); ++qositer) { - QoSVector::value_type qos = *qositer; + Kokyu_EC::QoSVector::value_type qos = *qositer; // Timeout QoS only has period and phase ECSupplier_Timeout_Handler *timeout; ACE_NEW_RETURN(timeout, @@ -565,14 +565,14 @@ int Configurator_SyntaxHandler::parsePublications (Publications* vs, void* arg) ACE_THROW_SPEC ((ACEXML_SAXException)) { - QoSVector *pubs = static_cast<QoSVector*> (arg); + Kokyu_EC::QoSVector *pubs = static_cast<Kokyu_EC::QoSVector*> (arg); ACE_ASSERT(pubs); // parse Publications EventNameVector::iterator eniter = vs->eventnames.begin(); for (; eniter != vs->eventnames.end(); eniter++) { - QoSVector::value_type pubqos; + Kokyu_EC::QoSVector::value_type pubqos; ACE_DEBUG ((LM_DEBUG,ACE_TEXT("Publication %s\n"),(*eniter)->str.c_str())); // TODO: fix segfault in this vicinity if (this->eventqostable.find((*eniter)->str,pubqos)) @@ -590,14 +590,14 @@ int Configurator_SyntaxHandler::parseTriggers (Triggers* vs, void* arg) ACE_THROW_SPEC ((ACEXML_SAXException)) { - QoSVector *trigs = static_cast<QoSVector*> (arg); + Kokyu_EC::QoSVector *trigs = static_cast<Kokyu_EC::QoSVector*> (arg); ACE_ASSERT(trigs); // parse Triggers TimeoutNameVector::iterator tniter = vs->timeoutnames.begin(); for (; tniter != vs->timeoutnames.end(); tniter++) { - QoSVector::value_type trigqos; + Kokyu_EC::QoSVector::value_type trigqos; ACE_DEBUG ((LM_DEBUG,ACE_TEXT("Trigger Timeout %s\n"),(*tniter)->str.c_str())); if (this->timeoutqostable.find((*tniter)->str,trigqos)) { diff --git a/TAO/orbsvcs/examples/RtEC/ECConfigurator/Configurator_SyntaxHandler.h b/TAO/orbsvcs/examples/RtEC/ECConfigurator/Configurator_SyntaxHandler.h index 4eafef71200..eef77a7bae1 100644 --- a/TAO/orbsvcs/examples/RtEC/ECConfigurator/Configurator_SyntaxHandler.h +++ b/TAO/orbsvcs/examples/RtEC/ECConfigurator/Configurator_SyntaxHandler.h @@ -126,7 +126,6 @@ public: void setNameTable(NameTable &nt); typedef ACE_Hash_Map_Manager<ACE_CString,RtEventChannelAdmin::SchedInfo,ACE_Null_Mutex> QoSTable; - typedef std::vector<RtEventChannelAdmin::SchedInfo> QoSVector; typedef std::vector<RtEventChannelAdmin::RtSchedEventChannel_var> ECVector; typedef std::vector<Kokyu_EC*> KokyuECVector; |