using namespace casacore;
namespace casa { //# NAMESPACE CASA - BEGIN
////////////////////////////////////
/// FlagAgentBase implementation ///
////////////////////////////////////
// NOTE: We have to initialize the polarizationList_p here, which is a OrderedMap<Int, Vector<Int> >
// because otherwise the compiler complains because we are calling a theoretical default constructor
// OrderedMap() that does not exist.
FlagAgentBase::FlagAgentBase(FlagDataHandler *dh, Record config, uShort iterationApproach, Bool writePrivateFlagCube, Bool flag): polarizationList_p(Vector<Int>(0))
FlagAgentBase::FlagAgentBase(FlagDataHandler *dh, Record config, uShort iterationApproach, Bool writePrivateFlagCube, Bool flag):
logger_p(new LogIO(LogOrigin("FlagAgentBase",__FUNCTION__,WHERE))),
polarizationList_p(Vector<Int>(0))
if (config.fieldNumber ("loglevel") >= 0)
logLevel_p = (LogIO::Command)config.asuChar("loglevel");
else if (agentName_p.empty())
logLevel_p = LogIO::NORMAL;
logger_p = new LogIO(LogOrigin("FlagAgentBase",__FUNCTION__,WHERE));
// Set iteration approach
iterationApproach_p = iterationApproach;
// Set private flag cube (needed for flag extension)
writePrivateFlagCube_p = writePrivateFlagCube;