- IndicationIEs& set_ricIndicationHeader(unsigned char* header, size_t header_size){
- memcpy(ricIndicationHeader,header,header_size); ricIndicationHeader_size = header_size; return *this;
+ bool get_is_callProcessID(){return this->is_callProcessID;};
+
+ IndicationIEs& set_ricIndicationHeader(E2SMIndicationHeader e2smObj){
+ bool res = e2smObj.encode(&(this->ricIndicationHeader)[0],&this->ricIndicationHeader_size);
+ if(!res){
+ mdclog_write(MDCLOG_ERR, "Failed to encode: %s","RIC Indication Header");
+ mdclog_write(MDCLOG_ERR, "Error during encode: %s",e2smObj.get_error());
+
+ } else {
+ mdclog_write(MDCLOG_INFO, "Successfully encoded: %s","RIC Indication Header");
+ }
+ return *this;
+ }
+ IndicationIEs& set_ricIndicationMessage(E2SMIndicationMessage e2smObj){
+ bool res = e2smObj.encode(&(this->ricIndicationMessage)[0],&this->ricIndicationMessage_size);
+ if(!res){
+ mdclog_write(MDCLOG_ERR, "Failed to encode: %s","RIC Indication Message");
+ mdclog_write(MDCLOG_ERR, "Error during encode: %s",e2smObj.get_error());
+ } else {
+ mdclog_write(MDCLOG_INFO, "Successfully encoded: %s","RIC Indication Message");
+ }
+
+ return *this;
+