From c238dc34dde31544cf5a5a72f696bce1e79fec55 Mon Sep 17 00:00:00 2001 From: Alexander Mueller <alexander.mueller@hs.uni-hamburg.de> Date: Thu, 31 Mar 2005 09:27:23 +0000 Subject: [PATCH] %[ER: 194]% Add the type name to the category in the "enabled" DP of a property set %[ER: 191]% adds namespaces --- MAC/GCF/_PAL/PA/src/GPA_PropertySet.cc | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/MAC/GCF/_PAL/PA/src/GPA_PropertySet.cc b/MAC/GCF/_PAL/PA/src/GPA_PropertySet.cc index 341b157cc8c..962f547854b 100644 --- a/MAC/GCF/_PAL/PA/src/GPA_PropertySet.cc +++ b/MAC/GCF/_PAL/PA/src/GPA_PropertySet.cc @@ -28,6 +28,15 @@ #include <stdio.h> #include <unistd.h> +namespace LOFAR +{ + namespace GCF + { +using namespace TM; +using namespace Common; + namespace PAL + { + const char* PS_CAT_NAMES[] = { "temporary", @@ -572,8 +581,13 @@ void GPAPropertySet::dpCreated(const string& dpName) { assert(dpName.find(_name + "__enabled") < dpName.length()); - GCFPVString category(PS_CAT_NAMES[_category]); - dpeSet(_name + "__enabled", category); + string enabledDPContent = PS_CAT_NAMES[_category]; + enabledDPContent += '|'; + enabledDPContent += _type; + + GCFPVString pvEnabledDPContent(enabledDPContent); + + dpeSet(_name + "__enabled", pvEnabledDPContent); GCFPVString indication("e|" + _name); dpeSet("__pa_PSIndication", indication); @@ -666,3 +680,6 @@ void GPAPropertySet::wrongState(const char* request) _name.c_str(), stateString[_state])); } + } // namespace PAL + } // namespace GCF +} // namespace LOFAR -- GitLab