50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
|
#include "se/LPECheckResponse.hpp"
|
||
|
#include "common/StringUtils.hpp"
|
||
|
#include "se/StandardObjectType.hpp"
|
||
|
|
||
|
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");
|
||
|
}
|
||
|
|