Skip to content
Snippets Groups Projects
Commit c238dc34 authored by Alexander Mueller's avatar Alexander Mueller
Browse files

%[ER: 194]%

Add the type name to the category in the "enabled" DP of a
property set
%[ER: 191]%
adds namespaces
parent 472c55f7
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment