27 #ifndef _DSC_INTERFACE_HXX_
28 #define _DSC_INTERFACE_HXX_
35 #include "DSC_Callbacks.hxx"
54 const char* provides_port_name,
55 Ports::PortProperties_ptr port_prop)
64 const char* uses_port_name,
65 Ports::PortProperties_ptr port_prop)
73 const CORBA::Boolean connection_error)
104 Ports::Port_ptr provides_port_ref)
112 virtual CORBA::Boolean
is_connected(
const char* port_name)
140 Ports::Port_ptr provides_port_ref,
152 static void writeEvent(
const char* request,
const std::string& containerName,
const char* instance_name,
153 const char* port_name,
const char* error,
const char* message);
160 enum port_type {uses, provides, none};
168 std::string repository_id;
171 Ports::Port_var provides_port_ref;
173 Ports::PortProperties_var port_prop;
176 typedef std::map<std::string, port_t *> ports;
182 ports::iterator my_ports_it;
virtual void disconnect_provides_port(const char *provides_port_name, const Engines::DSC::Message message)
Definition: DSC_interface.cxx:286
Port's reference is not the right reference.
Definition: DSC_Engines.idl:106
Definition: DSC_interface.hxx:162
virtual void add_uses_port(const char *repository_id, const char *uses_port_name, Ports::PortProperties_ptr port_prop)
Definition: DSC_interface.cxx:82
virtual Ports::PortProperties_ptr get_port_properties(const char *port_name)
Definition: DSC_interface.cxx:382
This is an abstract class that defines methods that the component uses to notify the component user c...
Definition: DSC_Callbacks.hxx:41
Port's reference is Nil !
Definition: DSC_Engines.idl:103
virtual CORBA::Boolean is_connected(const char *port_name)
Definition: DSC_interface.cxx:266
virtual void connect_provides_port(const char *provides_port_name)
Definition: DSC_interface.cxx:190
sequence< Ports::Port > uses_port
a uses port
Definition: DSC_Engines.idl:73
virtual Engines::DSC::uses_port * get_uses_port(const char *uses_port_name)
Definition: DSC_interface.cxx:150
This class implements the interface Engines::DSC.
Definition: DSC_interface.hxx:43
virtual void disconnect_uses_port(const char *uses_port_name, Ports::Port_ptr provides_port_ref, const Engines::DSC::Message message)
Definition: DSC_interface.cxx:313
This exception is raised when a port is used before it is added to the component. ...
Definition: DSC_Engines.idl:84
virtual Ports::Port_ptr get_provides_port(const char *provides_port_name, const CORBA::Boolean connection_error)
Definition: DSC_interface.cxx:114
static void writeEvent(const char *request, const std::string &containerName, const char *instance_name, const char *port_name, const char *error, const char *message)
Write a record in the trace file.
Definition: DSC_interface.cxx:499
virtual void add_provides_port(Ports::Port_ptr ref, const char *provides_port_name, Ports::PortProperties_ptr port_prop)
Definition: DSC_interface.cxx:51
Object property is not good for the port.
Definition: DSC_Engines.idl:109
Message
This enumeration is used when the connection of a port (uses or provides) is changed.
Definition: DSC_Engines.idl:79
This exception is raised when you try to use a port that is not connected.
Definition: DSC_Engines.idl:90
This exception is raised if the type of the provides port is bad.
Definition: DSC_Engines.idl:97
virtual void connect_uses_port(const char *uses_port_name, Ports::Port_ptr provides_port_ref)
Definition: DSC_interface.cxx:214
This exception is raised if you try to add a port with the same name than a previous defined port...
Definition: DSC_Engines.idl:87