|
Covalent Bond
0.0.1-alpha
'covalent bond' is a data middle office. As a 2022-2023 Fall SWE final project.
|
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>


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::cbMySqlDevice * | getDevice () |
| 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 |
| cbNode * | nextNode = nullptr |
| cbComputeGraph * | graph = nullptr |
Private Member Functions | |
| void | setMySQLDevice (trivial::cbMySqlDevice *device=nullptr) |
Private Attributes | |
| trivial::cbMySqlDevice * | m_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) |
This node include virtual device infomation and perform the final operation of how to get the data from remote sql database.
Definition at line 253 of file cbComputeGraph.hpp.
|
finaloverride |
Definition at line 72 of file cbComputeGraph.cpp.
| cb::graph::cbVirtualDeviceNode::cbVirtualDeviceNode | ( | ) |
Definition at line 122 of file cbComputeGraph.cpp.
References cb::graph::Leaf.
| void cb::graph::cbVirtualDeviceNode::addQuery | ( | const std::string & | q | ) |
Add a String type sql sentence to this node. Waiting to be execute.
| q | string |
Definition at line 116 of file cbComputeGraph.cpp.
References m_queries.
Referenced by cb::graph::cbComputeGraph::cbComputeGraph().

|
finaloverridevirtual |
generate a SQL wf task for now.
Implements cb::graph::cbNode.
Definition at line 76 of file cbComputeGraph.cpp.
References cbVirtualTable::getInfo(), cbVirtualTable::getShape(), cb::graph::cbNode::graph, cbOpIO::I, cb::graph::cbNode::io, cb::graph::cbComputeGraph::io, cb::graph::cbNode::isFinalOutput, m_device, m_queries, cb::graph::cbComputeGraph::m_sharedMem, mapShared2Virtual(), cb::graph::cbNode::nextNode, cbOpIO::O, cb::graph::cbGraphSharedMem::push(), trivial::cbMySqlDevice::query(), cb::graph::cbGraphSharedMem::setOutStruct(), and cb::graph::cbNode::task.

| trivial::cbMySqlDevice * cb::graph::cbVirtualDeviceNode::getDevice | ( | ) |
Get the Device object.
Definition at line 118 of file cbComputeGraph.cpp.
References m_device.
|
private |
Definition at line 120 of file cbComputeGraph.cpp.
References m_device.
Referenced by cb::graph::cbComputeGraph::createVirtualDeviceNode().

| friend cb::graph::cbVirtualDeviceNode::cbComputeGraph |
Definition at line 254 of file cbComputeGraph.hpp.
|
private |
Definition at line 282 of file cbComputeGraph.hpp.
Referenced by generateTask(), getDevice(), and setMySQLDevice().
|
private |
Definition at line 283 of file cbComputeGraph.hpp.
Referenced by addQuery(), and generateTask().
1.8.17