Covalent Bond  0.0.1-alpha
'covalent bond' is a data middle office. As a 2022-2023 Fall SWE final project.
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
cb::graph::cbVirtualDeviceNode Struct Referencefinal

This node include virtual device infomation and perform the final operation of how to get the data from remote sql database. More...

#include <cbComputeGraph.hpp>

Inheritance diagram for cb::graph::cbVirtualDeviceNode:
Inheritance graph
[legend]
Collaboration diagram for cb::graph::cbVirtualDeviceNode:
Collaboration graph
[legend]

Public Member Functions

 ~cbVirtualDeviceNode () override final
 
 cbVirtualDeviceNode ()
 
void * generateTask () override final
 generate a SQL wf task for now. More...
 
void addQuery (const std::string &q)
 Add a String type sql sentence to this node. Waiting to be execute. More...
 
trivial::cbMySqlDevicegetDevice ()
 Get the Device object. More...
 
- Public Member Functions inherited from cb::graph::cbNode
virtual ~cbNode ()
 Destroy the cb Node object Virtual function. More...
 
 cbNode (const nodeType &nt)
 
void PointTo (cbNode *ptr)
 

Public Attributes

friend cbComputeGraph
 
- Public Attributes inherited from cb::graph::cbNode
cbOpIO io
 
bool isFinalOutput = false
 
bool visited = false
 
nodeType nodeT
 
void * task = nullptr
 
cbNodenextNode = nullptr
 
cbComputeGraphgraph = nullptr
 

Private Member Functions

void setMySQLDevice (trivial::cbMySqlDevice *device=nullptr)
 

Private Attributes

trivial::cbMySqlDevicem_device
 
std::vector< std::string > m_queries
 

Additional Inherited Members

- Static Public Member Functions inherited from cb::graph::cbNode
static WFMySQLTask * asSQLTask (void *metaTask)
 
static WFGoTask * asGoTask (void *metaTask)
 

Detailed Description

This node include virtual device infomation and perform the final operation of how to get the data from remote sql database.

Note
This node just support SQL for now. But it's quite easy to extened to other relationship database.

Definition at line 253 of file cbComputeGraph.hpp.

Constructor & Destructor Documentation

◆ ~cbVirtualDeviceNode()

cb::graph::cbVirtualDeviceNode::~cbVirtualDeviceNode ( )
finaloverride

Definition at line 72 of file cbComputeGraph.cpp.

◆ cbVirtualDeviceNode()

cb::graph::cbVirtualDeviceNode::cbVirtualDeviceNode ( )

Definition at line 122 of file cbComputeGraph.cpp.

References cb::graph::Leaf.

Member Function Documentation

◆ addQuery()

void cb::graph::cbVirtualDeviceNode::addQuery ( const std::string &  q)

Add a String type sql sentence to this node. Waiting to be execute.

Parameters
qstring

Definition at line 116 of file cbComputeGraph.cpp.

References m_queries.

Referenced by cb::graph::cbComputeGraph::cbComputeGraph().

Here is the caller graph for this function:

◆ generateTask()

void * cb::graph::cbVirtualDeviceNode::generateTask ( )
finaloverridevirtual

◆ getDevice()

trivial::cbMySqlDevice * cb::graph::cbVirtualDeviceNode::getDevice ( )

Get the Device object.

Returns
trivial::cbMySqlDevice*

Definition at line 118 of file cbComputeGraph.cpp.

References m_device.

◆ setMySQLDevice()

void cb::graph::cbVirtualDeviceNode::setMySQLDevice ( trivial::cbMySqlDevice device = nullptr)
private

Definition at line 120 of file cbComputeGraph.cpp.

References m_device.

Referenced by cb::graph::cbComputeGraph::createVirtualDeviceNode().

Here is the caller graph for this function:

Member Data Documentation

◆ cbComputeGraph

friend cb::graph::cbVirtualDeviceNode::cbComputeGraph

Definition at line 254 of file cbComputeGraph.hpp.

◆ m_device

trivial::cbMySqlDevice* cb::graph::cbVirtualDeviceNode::m_device
private

Definition at line 282 of file cbComputeGraph.hpp.

Referenced by generateTask(), getDevice(), and setMySQLDevice().

◆ m_queries

std::vector<std::string> cb::graph::cbVirtualDeviceNode::m_queries
private

Definition at line 283 of file cbComputeGraph.hpp.

Referenced by addQuery(), and generateTask().


The documentation for this struct was generated from the following files: