#include <l1394_nodefactory.h>
Public Member Functions | |
virtual | ~NodeFactory () |
destructor | |
virtual Node * | createNode (Card *, const u_int32_t) |
This method creates the node-objects. | |
virtual Card * | createCard (const u_int32_t card_id, const u_int32_t node_id, raw1394handle_t default_handle) |
This method instantiates the Card object. | |
virtual Device * | createDevice (FcpNode *, int subunit_type) |
This method instantiates the Device objects for FcpNodes. | |
Static Public Member Functions | |
static NodeFactory * | getNodeFactory () |
This static method returns the pointer to the NodeFactory. | |
Protected Member Functions | |
NodeFactory () | |
virtual NodeType | scanNode (Card *c, unsigned int node_id) |
scans a specific node and returns the type (AVC, DCC, ...) as integer value (defined in class Node) |
This class creates the default L1394 node objects (Crad, DccCamera, FcpCamera and PhyNode) and devices (AvcCamera, AvcVcr..). If you like to use your own L1394 Node objects inherit from this class and rewrite the createNode(), createCard() and createDevice() function.
This class is designed as singelton. So if you use your own NodeFactory you must instantiate the new factory before the Session object. The Session object calls the method getFactory() and gets the new factory.
Definition at line 48 of file l1394_nodefactory.h.
|
destructor
Definition at line 54 of file l1394_nodefactory.cpp. References L1394::ThreadMutex::lock(), and L1394::ThreadMutex::unlock(). |
|
Definition at line 44 of file l1394_nodefactory.cpp. References L1394::internal::Message::errorStream(). Referenced by getNodeFactory(). |
|
This method instantiates the Card object.
Definition at line 61 of file l1394_nodefactory.cpp. References L1394::internal::Message::debugStream(). |
|
This method instantiates the Device objects for FcpNodes.
Definition at line 148 of file l1394_nodefactory.cpp. References L1394::internal::Message::debugStream(), SUBUNIT_DISC, SUBUNIT_TAPE, SUBUNIT_TUNER, SUBUNIT_VIDEO_CAMERA, SUBUNIT_VIDEO_MONITOR, and L1394::internal::Message::warningStream(). |
|
This method creates the node-objects. If you like to create your own Node objects inherit from this class and rewrite this function.
Definition at line 68 of file l1394_nodefactory.cpp. References L1394::_Card, L1394::_DccNode, L1394::_FcpNode, L1394::_PhyNode, L1394::_SBP2Node, L1394::_UnknownNode, and scanNode(). Referenced by L1394::Card::makeNodeList(). |
|
This static method returns the pointer to the NodeFactory.
Definition at line 35 of file l1394_nodefactory.cpp. References L1394::ThreadMutex::lock(), NodeFactory(), and L1394::ThreadMutex::unlock(). Referenced by L1394::Card::makeNodeList(). |
|
scans a specific node and returns the type (AVC, DCC, ...) as integer value (defined in class Node)
Referenced by createNode(). |