BindReceiverResp::BindReceiverResp(const CommandStatus &command_status, const SequenceNumber &sequence_number, const SystemId &system_id) : TlvsHeader(CommandLength(min_length), CommandId(CommandId::BindReceiverResp), command_status, sequence_number), system_id(system_id) { Header::updateLength(system_id.length()); }
void AgentSystemFile::systemRemove (SystemId id, const Telemetry::Path *request_path) { // The common interface AgentSystem::systemRemove(id, request_path); #if defined(__OC_Telemetry_Config__) bool mqtt = true; // Generate the Jsonized OC configuration std::string config = OCTelemetryJsonGenerator::generate_json_oc_config(mqtt, (id_idx_t)id.getId(), request_path); #else // Generate the Jsonized Junos configuration bool add = false; bool mqtt = true; std::string config = JunosTelemetryJsonGenerator::generate_json_junos_config (add, mqtt, (id_idx_t)id.getId(), request_path); #endif // Write it out _outputFile << "Remove config (" << id.getId() << "):" << std::endl; _outputFile << config << std::endl; _outputFile.flush(); }
/// @brief Sets the system id. /// @param p The system id. void system_id(const Smpp::Char* p) { int diff = strlen(p) - system_id_.length(); system_id_ = p; Header::update_length(diff); }
/// @brief Sets the system id. /// @param p The system id. void system_id(const SystemId& p) { int diff = p.length() - system_id_.length(); system_id_ = p; Header::update_length(diff); }