📄 atm_mib.cpp
字号:
return SNMP_ERROR_WRONG_LENGTH; return SNMP_ERROR_SUCCESS;}/** * atmInterfaceDs3PlcpSEFSs * */atmInterfaceDs3PlcpSEFSs::atmInterfaceDs3PlcpSEFSs(const Oidx& id): SimMibLeaf(id, READONLY, new Counter32()){}atmInterfaceDs3PlcpSEFSs::~atmInterfaceDs3PlcpSEFSs(){}MibEntryPtr atmInterfaceDs3PlcpSEFSs::clone(){ MibEntryPtr other = new atmInterfaceDs3PlcpSEFSs(oid); ((atmInterfaceDs3PlcpSEFSs*)other)->replace_value(value->clone()); ((atmInterfaceDs3PlcpSEFSs*)other)->set_reference_to_table(my_table); return other;}/** * atmInterfaceDs3PlcpAlarmState * */atmInterfaceDs3PlcpAlarmState::atmInterfaceDs3PlcpAlarmState(const Oidx& id): SimMibLeaf(id, READONLY, new SnmpInt32()){}atmInterfaceDs3PlcpAlarmState::~atmInterfaceDs3PlcpAlarmState(){}MibEntryPtr atmInterfaceDs3PlcpAlarmState::clone(){ MibEntryPtr other = new atmInterfaceDs3PlcpAlarmState(oid); ((atmInterfaceDs3PlcpAlarmState*)other)->replace_value(value->clone()); ((atmInterfaceDs3PlcpAlarmState*)other)->set_reference_to_table(my_table); return other;}/** * atmInterfaceDs3PlcpUASs * */atmInterfaceDs3PlcpUASs::atmInterfaceDs3PlcpUASs(const Oidx& id): SimMibLeaf(id, READONLY, new Counter32()){}atmInterfaceDs3PlcpUASs::~atmInterfaceDs3PlcpUASs(){}MibEntryPtr atmInterfaceDs3PlcpUASs::clone(){ MibEntryPtr other = new atmInterfaceDs3PlcpUASs(oid); ((atmInterfaceDs3PlcpUASs*)other)->replace_value(value->clone()); ((atmInterfaceDs3PlcpUASs*)other)->set_reference_to_table(my_table); return other;}/** * atmInterfaceOCDEvents * */atmInterfaceOCDEvents::atmInterfaceOCDEvents(const Oidx& id): SimMibLeaf(id, READONLY, new Counter32()){}atmInterfaceOCDEvents::~atmInterfaceOCDEvents(){}MibEntryPtr atmInterfaceOCDEvents::clone(){ MibEntryPtr other = new atmInterfaceOCDEvents(oid); ((atmInterfaceOCDEvents*)other)->replace_value(value->clone()); ((atmInterfaceOCDEvents*)other)->set_reference_to_table(my_table); return other;}/** * atmInterfaceTCAlarmState * */atmInterfaceTCAlarmState::atmInterfaceTCAlarmState(const Oidx& id): SimMibLeaf(id, READONLY, new SnmpInt32()){}atmInterfaceTCAlarmState::~atmInterfaceTCAlarmState(){}MibEntryPtr atmInterfaceTCAlarmState::clone(){ MibEntryPtr other = new atmInterfaceTCAlarmState(oid); ((atmInterfaceTCAlarmState*)other)->replace_value(value->clone()); ((atmInterfaceTCAlarmState*)other)->set_reference_to_table(my_table); return other;}/** * atmTrafficDescrType * */atmTrafficDescrType::atmTrafficDescrType(const Oidx& id): SimMibLeaf(id, READCREATE, new Oid("atmNoClpNoScr"), VMODE_DEFAULT){}atmTrafficDescrType::~atmTrafficDescrType(){}MibEntryPtr atmTrafficDescrType::clone(){ MibEntryPtr other = new atmTrafficDescrType(oid); ((atmTrafficDescrType*)other)->replace_value(value->clone()); ((atmTrafficDescrType*)other)->set_reference_to_table(my_table); return other;}boolean atmTrafficDescrType::value_ok(const Vbx& vb){ // place code to check validity of new values here return TRUE;}int atmTrafficDescrType::prepare_set_request(Request* req, int& ind){ int status; if ((status = SimMibLeaf::prepare_set_request(req, ind)) != SNMP_ERROR_SUCCESS) return status; // place additional code to check validity of new values here return SNMP_ERROR_SUCCESS;}/** * atmTrafficDescrParam1 * */atmTrafficDescrParam1::atmTrafficDescrParam1(const Oidx& id): SimMibLeaf(id, READCREATE, new SnmpInt32(0), VMODE_DEFAULT){}atmTrafficDescrParam1::~atmTrafficDescrParam1(){}MibEntryPtr atmTrafficDescrParam1::clone(){ MibEntryPtr other = new atmTrafficDescrParam1(oid); ((atmTrafficDescrParam1*)other)->replace_value(value->clone()); ((atmTrafficDescrParam1*)other)->set_reference_to_table(my_table); return other;}boolean atmTrafficDescrParam1::value_ok(const Vbx& vb){ // place code to check validity of new values here return TRUE;}int atmTrafficDescrParam1::prepare_set_request(Request* req, int& ind){ int status; if ((status = SimMibLeaf::prepare_set_request(req, ind)) != SNMP_ERROR_SUCCESS) return status; // place additional code to check validity of new values here return SNMP_ERROR_SUCCESS;}/** * atmTrafficDescrParam2 * */atmTrafficDescrParam2::atmTrafficDescrParam2(const Oidx& id): SimMibLeaf(id, READCREATE, new SnmpInt32(0), VMODE_DEFAULT){}atmTrafficDescrParam2::~atmTrafficDescrParam2(){}MibEntryPtr atmTrafficDescrParam2::clone(){ MibEntryPtr other = new atmTrafficDescrParam2(oid); ((atmTrafficDescrParam2*)other)->replace_value(value->clone()); ((atmTrafficDescrParam2*)other)->set_reference_to_table(my_table); return other;}boolean atmTrafficDescrParam2::value_ok(const Vbx& vb){ // place code to check validity of new values here return TRUE;}int atmTrafficDescrParam2::prepare_set_request(Request* req, int& ind){ int status; if ((status = SimMibLeaf::prepare_set_request(req, ind)) != SNMP_ERROR_SUCCESS) return status; // place additional code to check validity of new values here return SNMP_ERROR_SUCCESS;}/** * atmTrafficDescrParam3 * */atmTrafficDescrParam3::atmTrafficDescrParam3(const Oidx& id): SimMibLeaf(id, READCREATE, new SnmpInt32(0), VMODE_DEFAULT){}atmTrafficDescrParam3::~atmTrafficDescrParam3(){}MibEntryPtr atmTrafficDescrParam3::clone(){ MibEntryPtr other = new atmTrafficDescrParam3(oid); ((atmTrafficDescrParam3*)other)->replace_value(value->clone()); ((atmTrafficDescrParam3*)other)->set_reference_to_table(my_table); return other;}boolean atmTrafficDescrParam3::value_ok(const Vbx& vb){ // place code to check validity of new values here return TRUE;}int atmTrafficDescrParam3::prepare_set_request(Request* req, int& ind){ int status; if ((status = SimMibLeaf::prepare_set_request(req, ind)) != SNMP_ERROR_SUCCESS) return status; // place additional code to check validity of new values here return SNMP_ERROR_SUCCESS;}/** * atmTrafficDescrParam4 * */atmTrafficDescrParam4::atmTrafficDescrParam4(const Oidx& id): SimMibLeaf(id, READCREATE, new SnmpInt32(0), VMODE_DEFAULT){}atmTrafficDescrParam4::~atmTrafficDescrParam4(){}MibEntryPtr atmTrafficDescrParam4::clone(){ MibEntryPtr other = new atmTrafficDescrParam4(oid); ((atmTrafficDescrParam4*)other)->replace_value(value->clone()); ((atmTrafficDescrParam4*)other)->set_reference_to_table(my_table); return other;}boolean atmTrafficDescrParam4::value_ok(const Vbx& vb){ // place code to check validity of new values here return TRUE;}int atmTrafficDescrParam4::prepare_set_request(Request* req, int& ind){ int status; if ((status = SimMibLeaf::prepare_set_request(req, ind)) != SNMP_ERROR_SUCCESS) return status; // place additional code to check validity of new values here return SNMP_ERROR_SUCCESS;}/** * atmTrafficDescrParam5 * */atmTrafficDescrParam5::atmTrafficDescrParam5(const Oidx& id): SimMibLeaf(id, READCREATE, new SnmpInt32(0), VMODE_DEFAULT){}atmTrafficDescrParam5::~atmTrafficDescrParam5(){}MibEntryPtr atmTrafficDescrParam5::clone(){ MibEntryPtr other = new atmTrafficDescrParam5(oid); ((atmTrafficDescrParam5*)other)->replace_value(value->clone()); ((atmTrafficDescrParam5*)other)->set_reference_to_table(my_table); return other;}boolean atmTrafficDescrParam5::value_ok(const Vbx& vb){ // place code to check validity of new values here return TRUE;}int atmTrafficDescrParam5::prepare_set_request(Request* req, int& ind){ int status; if ((status = SimMibLeaf::prepare_set_request(req, ind)) != SNMP_ERROR_SUCCESS) return status; // place additional code to check validity of new values here return SNMP_ERROR_SUCCESS;}/** * atmTrafficQoSClass * */atmTrafficQoSClass::atmTrafficQoSClass(const Oidx& id): SimMibLeaf(id, READCREATE, new SnmpInt32(0), VMODE_DEFAULT){}atmTrafficQoSClass::~atmTrafficQoSClass(){}MibEntryPtr atmTrafficQoSClass::clone(){ MibEntryPtr other = new atmTrafficQoSClass(oid); ((atmTrafficQoSClass*)other)->replace_value(value->clone()); ((atmTrafficQoSClass*)other)->set_reference_to_table(my_table); return other;}boolean atmTrafficQoSClass::value_ok(const Vbx& vb){ long v; vb.get_value(v); if (!(((v >= 0) && (v <= 255)))) return FALSE; // place additional code to check validity of new values here return TRUE;}int atmTrafficQoSClass::prepare_set_request(Request* req, int& ind){ int status; if ((status = SimMibLeaf::prepare_set_request(req, ind)) != SNMP_ERROR_SUCCESS) return status; // place additional code to check validity of new values here return SNMP_ERROR_SUCCESS;}/** * atmTrafficDescrRowStatus * */atmTrafficDescrRowStatus::atmTrafficDescrRowStatus(const Oidx& id): snmpRowStatus(id, READCREATE){}atmTrafficDescrRowStatus::~atmTrafficDescrRowStatus(){}MibEntryPtr atmTrafficDescrRowStatus::clone(){ MibEntryPtr other = new atmTrafficDescrRowStatus(oid); ((atmTrafficDescrRowStatus*)other)->replace_value(value->clone()); ((atmTrafficDescrRowStatus*)other)->set_reference_to_table(my_table); return other;}/** * atmServiceCategory * */atmServiceCategory::atmServiceCategory(const Oidx& id): SimMibLeaf(id, READCREATE, new SnmpInt32(6), VMODE_DEFAULT){}atmServiceCategory::~atmServiceCategory(){}MibEntryPtr atmServiceCategory::clone(){ MibEntryPtr other = new atmServiceCategory(oid); ((atmServiceCategory*)other)->replace_value(value->clone()); ((atmServiceCategory*)other)->set_reference_to_table(my_table); return other;}boolean atmServiceCategory::value_ok(const Vbx& vb){ long v; vb.get_value(v); if ((v != 1) && (v != 2) && (v != 3) && (v != 4) && (v != 5) && (v != 6)) return FALSE; // place additional code to check validity of new values here return TRUE;}int atmServiceCategory::prepare_set_request(Request* req, int& ind){ int status; if ((status = SimMibLeaf::prepare_set_request(req, ind)) != SNMP_ERROR_SUCCESS) return status; // place additional code to check validity of new values here return SNMP_ERROR_SUCCESS;}/** * atmTrafficFrameDiscard * */atmTrafficFrameDiscard::atmTrafficFrameDiscard(const Oidx& id): SimMibLeaf(id, READCREATE, new SnmpInt32(1), VMODE_DEFAULT){}atmTrafficFrameDiscard::~atmTrafficFrameDiscard(){}MibEntryPtr atmTrafficFrameDiscard::clone(){ MibEntryPtr other = new atmTrafficFrameDiscard(oid); ((atmTrafficFrameDiscard*)other)->replace_value(value->clone()); ((atmTrafficFrameDiscard*)other)->set_reference_to_table(my_table); return other;}boolean atmTrafficFrameDiscard::value_ok(const Vbx& vb){ long v; vb.get_value(v); if ((v != 1) && (v != 2)) return FALSE; // place additional code to check validity of new values here return TRUE;}int atmTrafficFrameDiscard::prepare_set_request(Request* req, int& ind){ int status; if ((status = SimMibLeaf::prepare_set_request(req, ind)) != SNMP_ERROR_SUCCESS) return status; // place additional code to check validity of new values here return SNMP_ERROR_SUCCESS;}/** * atmVplAdminStatus * */atmVplAdminStatus::atmVplAdminStatus(const Oidx& id): SimMibLeaf(id, READCREATE, new SnmpInt32(2), VMODE_DEFAULT){}atmVplAdminStatus::~atmVplAdminStatus(){}MibEntryPtr atmVplAdminStatus::clone(){ MibEntryPtr other = new atmVplAdminStatus(oid); ((atmVplAdminStatus*)other)->replace_value(value->clone()); ((atmVplAdminStatus*)other)->set_reference_to_table(my_table); return other;}boolean atmVplAdminStatus::value_ok(const Vbx& vb){ long v; vb.get_value(v); if ((v != 1) && (v != 2)) return FALSE; // place additional code to check validity of new values here return TRUE;}int atmVplAdminStatus::prepare_set_request(Request* req, int& ind){ int status; if ((status = SimMibLeaf::prepare_set_request(req, ind)) != SNMP_ERROR_SUCCESS) return status; // place additional code to check validity of new values here return SNMP_ERROR_SUCCESS;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -