Logo Search packages:      
Sourcecode: ardour version File versions  Download package

void ImageFrameSocketHandler::handle_insert_message ( const char *  msg  )  [private]

Handle insert item requests

Parameters:
msg the received message

Definition at line 830 of file imageframe_socket_handler.cc.

References get_message_part(), handle_insert_imageframe_group(), handle_insert_imageframe_time_axis(), handle_insert_imageframe_view(), handle_insert_marker_time_axis(), handle_insert_marker_view(), and send_return_failure().

Referenced by image_socket_callback().

{
      // handle the insert item message
      // determine the object type to insert based upon characters 2-3
      
      std::string oType = get_message_part(2,2,msg) ;

      if(oType == ardourvis::IMAGEFRAME_TIME_AXIS)
      {
            this->handle_insert_imageframe_time_axis(msg) ;
      }
      else if (oType == ardourvis::MARKER_TIME_AXIS)
      {
            this->handle_insert_marker_time_axis(msg) ;
      }
      else if (oType == ardourvis::IMAGEFRAME_GROUP)
      {
            this->handle_insert_imageframe_group(msg) ;
      }
      else if (oType == ardourvis::IMAGEFRAME_ITEM)
      {
            this->handle_insert_imageframe_view(msg) ;
      }
      else if (oType == ardourvis::MARKER_ITEM)
      {
            this->handle_insert_marker_view(msg) ;
      }
      else
      {
            std::string errMsg = "Unknown Object type during insert: " ; 
            errMsg.append(oType) ;
            send_return_failure(errMsg) ;
      }
}


Generated by  Doxygen 1.6.0   Back to index