![]() |
Oyranos Colour Management System API |
A filter connection description structure. More...
#include <oyConnector_s.h>


Public Member Functions | |
| OYAPI oyConnector_s *OYEXPORT | oyConnector_New (oyObject_s object) |
| allocate a new Connector object | |
| OYAPI oyConnector_s *OYEXPORT | oyConnector_Copy (oyConnector_s *connector, oyObject_s object) |
| copy or reference a Connector object | |
| OYAPI int OYEXPORT | oyConnector_Release (oyConnector_s **connector) |
| release and possibly deallocate a oyConnector_s object | |
| int | oyConnector_SetName (oyConnector_s *obj, const char *string, oyNAME_e type) |
| set the names in a connector | |
| const char * | oyConnector_GetName (oyConnector_s *obj, oyNAME_e type) |
| set the names in a connector | |
| int | oyConnector_IsPlug (oyConnector_s *obj) |
| Is this connector a plug or a socket. | |
| int | oyConnector_SetIsPlug (oyConnector_s *obj, int is_plug) |
| Set this connector as a plug or a socket. | |
| const char * | oyConnector_GetReg (oyConnector_s *obj) |
| Get the registration for the connection type. | |
| int | oyConnector_SetReg (oyConnector_s *obj, const char *type_registration) |
| Set this connectors type string. | |
| int | oyConnector_SetMatch (oyConnector_s *obj, oyCMMFilterSocket_MatchPlug_f func) |
| Set this connectors type check function. | |
| oyCMMFilterSocket_MatchPlug_f | oyConnector_GetMatch (oyConnector_s *obj) |
| Set this connectors type check function. | |
| void | oyConnector_Release__Members (oyConnector_s_ *connector) |
| Custom Connector destructor. | |
| int | oyConnector_Init__Members (oyConnector_s_ *connector) |
| Custom Connector constructor. | |
| int | oyConnector_Copy__Members (oyConnector_s_ *dst, oyConnector_s_ *src) |
| Custom Connector copy constructor. | |
Public Member Functions inherited from oyStruct_s | |
| const char * | oyStruct_GetText (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags) |
| get a text dump | |
Data Fields | |
| oyStruct_Copy_f | copy |
| oyStruct_Release_f | release |
Data Fields inherited from oyStruct_s | |
| oyStruct_Copy_f | copy |
| oyStruct_Release_f | release |
A filter connection description structure.
This structure holds informations about the connection capabilities. It holds common structure members of oyFilterPlug_s and oyFilterSocket_s.
To signal a value is not initialised or does not apply, set the according integer value to -1.
| OYAPI oyConnector_s *OYEXPORT oyConnector_Copy | ( | oyConnector_s * | connector, |
| oyObject_s | object | ||
| ) |
copy or reference a Connector object
Function oyConnector_Copy
The function is for copying and for referencing. The reference is the most often used way, which saves resourcs and time.
| [in] | connector | Connector struct object |
| object | NULL - means reference, the optional object triffers a real copy |
References oyOBJECT_CONNECTOR_S.
Referenced by oyFilterNode_s::oyFilterNode_ShowConnector(), oyFilterPlug_s::oyFilterPlug_Copy__Members(), oyFilterPlug_s::oyFilterPlug_GetPattern(), oyFilterSocket_s::oyFilterSocket_Copy__Members(), and oyFilterPlug_s::oyFilterSocket_GetPattern().
| int oyConnector_Copy__Members | ( | oyConnector_s_ * | dst, |
| oyConnector_s_ * | src | ||
| ) |
Custom Connector copy constructor.
Function oyConnector_Copy__Members
References oyObject_s::oyObject_CopyNames().
| oyCMMFilterSocket_MatchPlug_f oyConnector_GetMatch | ( | oyConnector_s * | obj | ) |
Set this connectors type check function.
Function oyConnector_GetMatch
This is use as a check, if connections are possible. This allowes for a more fine grained control than the type registration.
| [in] | obj | Connector object |
References oyOBJECT_CONNECTOR_S.
Referenced by oyFilterNode_s::oyFilterNode_ConnectorMatch().
| const char * oyConnector_GetName | ( | oyConnector_s * | obj, |
| oyNAME_e | type | ||
| ) |
set the names in a connector
Function oyConnector_GetName
Get UI strings.
| [in] | obj | Connector object |
| [in] | type | the names type |
References oyOBJECT_CONNECTOR_S, and oyObject_s::oyObject_GetName().
| const char * oyConnector_GetReg | ( | oyConnector_s * | obj | ) |
Get the registration for the connection type.
Function oyConnector_GetReg
This is use as a rough check, if connections are possible.
| [in] | obj | Connector object |
References oyOBJECT_CONNECTOR_S.
Referenced by oyFilterNode_s::oyFilterNode_ConnectorMatch(), and oyFilterNode_s::oyFilterNode_GetConnectorPos().
| int oyConnector_Init__Members | ( | oyConnector_s_ * | connector | ) |
Custom Connector constructor.
Function oyConnector_Init__Members
| int oyConnector_IsPlug | ( | oyConnector_s * | obj | ) |
Is this connector a plug or a socket.
Function oyConnector_IsPlug
| [in] | obj | Connector object |
References oyOBJECT_CONNECTOR_S.
| OYAPI oyConnector_s *OYEXPORT oyConnector_New | ( | oyObject_s | object | ) |
| OYAPI int OYEXPORT oyConnector_Release | ( | oyConnector_s ** | connector | ) |
release and possibly deallocate a oyConnector_s object
Function oyConnector_Release
| [in,out] | connector | Connector struct object |
References oyOBJECT_CONNECTOR_S.
Referenced by oyFilterNode_s::oyFilterNode_ConnectorMatch(), oyFilterPlug_s::oyFilterPlug_Release__Members(), and oyFilterSocket_s::oyFilterSocket_Release__Members().
| void oyConnector_Release__Members | ( | oyConnector_s_ * | connector | ) |
Custom Connector destructor.
Function oyConnector_Release__Members
| int oyConnector_SetIsPlug | ( | oyConnector_s * | obj, |
| int | is_plug | ||
| ) |
Set this connector as a plug or a socket.
Function oyConnector_SetIsPlug
| [in,out] | obj | Connector object |
| [in] | is_plug | boolean; 0 - socket; 1 - plug |
References oyOBJECT_CONNECTOR_S.
| int oyConnector_SetMatch | ( | oyConnector_s * | obj, |
| oyCMMFilterSocket_MatchPlug_f | func | ||
| ) |
Set this connectors type check function.
Function oyConnector_SetMatch
This is use as a check, if connections are possible. This allowes for a more fine grained control than the type registration.
| [in,out] | obj | Connector object |
| [in] | func | the check function |
References oyOBJECT_CONNECTOR_S.
| int oyConnector_SetName | ( | oyConnector_s * | obj, |
| const char * | string, | ||
| oyNAME_e | type | ||
| ) |
set the names in a connector
Function oyConnector_SetName
These are UI strings, e.g. "Img", "Image", "Image Socket" .
| [in,out] | obj | Connector object |
| [in] | string | the name to set |
| [in] | type | the names type |
References oyOBJECT_CONNECTOR_S, and oyObject_s::oyObject_SetName().
| int oyConnector_SetReg | ( | oyConnector_s * | obj, |
| const char * | type_registration | ||
| ) |
Set this connectors type string.
Function oyConnector_SetReg
This is use as a rough check, if connections are possible.
| [in,out] | obj | Connector object |
| [in] | type_registration | the registration string to describe the type |
References oyOBJECT_CONNECTOR_S.
| oyStruct_Copy_f oyConnector_s::copy |
copy function
| oyStruct_Release_f oyConnector_s::release |
release function