#include "common/StringUtils.hpp" #include "se/StandardObjectType.hpp" #include "OTE/LPECheckResponse.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"); }