DRDE/ACTK1_0/OTE/LPECheckResponse.cpp

50 lines
1.4 KiB
C++
Raw Normal View History

2014-01-15 18:29:15 +00:00
#include "common/StringUtils.hpp"
#include "se/StandardObjectType.hpp"
2014-01-17 01:46:48 +00:00
#include "OTE/LPECheckResponse.hpp"
2014-01-15 18:29:15 +00:00
const std::string& LPECheckResponse::DOM_CHKDATA_COUNT_EXPR()
{
static const std::string expr = LPECheckResponse::exprReplace (CheckResponse::CHKDATA_COUNT_EXPR());
return expr;
}
const std::string& LPECheckResponse::DOM_CHKDATA_IND_EXPR()
{
static const std::string expr = LPECheckResponse::exprReplace (CheckResponse::CHKDATA_IND_EXPR());
return expr;
}
const std::string& LPECheckResponse::DOM_CHKDATA_IDENT_EXPR()
{
static const std::string expr = LPECheckResponse::exprReplace (CheckResponse::CHKDATA_IDENT_EXPR());
return expr;
}
const std::string& LPECheckResponse::DOM_CHKDATA_AVAIL_EXPR()
{
static const std::string expr = LPECheckResponse::exprReplace (CheckResponse::CHKDATA_AVAIL_EXPR());
return expr;
}
const std::string& LPECheckResponse::DOM_CHKDATA_REASON_EXPR()
{
static const std::string expr = LPECheckResponse::exprReplace (CheckResponse::CHKDATA_REASON_EXPR());
return expr;
}
LPECheckResponse::LPECheckResponse()
: CheckResponse (StandardObjectType::DOMAIN())
{ }
std::string LPECheckResponse::exprReplace (const std::string &expr)
{
return StringUtils::replaceAll(
StringUtils::replaceAll(
expr,
DataResponse::OBJ(),
StandardObjectType::DOMAIN()->getName()),
"IDENT",
"name");
}