code format
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "cdutils_c.h"
|
||||
|
||||
#include "cdutils_core.h"
|
||||
|
||||
using namespace CDUtils;
|
||||
@@ -6,8 +7,7 @@ using namespace CDUtils;
|
||||
CInterface C;
|
||||
|
||||
|
||||
CInterface::CInterface(): Interface(CDType::cdC) {
|
||||
}
|
||||
CInterface::CInterface(): Interface(CDType::cdC) {}
|
||||
|
||||
|
||||
void CInterface::sendCommand(const CDType & c) {
|
||||
@@ -28,10 +28,10 @@ void CInterface::autoConnect(PIObject * o, const PIString & prefix) {
|
||||
PIObject::__MetaData & md(PIObject::__meta_data()[cid]);
|
||||
for (auto it = md.eh_func.begin(); it != md.eh_func.end(); ++it) {
|
||||
eh_map[it.value().func_name] = (Handler)it.value().addr;
|
||||
//piCout << "func" << it.value().func_name;
|
||||
// piCout << "func" << it.value().func_name;
|
||||
}
|
||||
PIVector<CDType * > cl = C.root().children();
|
||||
piForeachC (CDType * c, cl) {
|
||||
PIVector<CDType *> cl = C.root().children();
|
||||
piForeachC(CDType * c, cl) {
|
||||
PIString cp = prefix + c->pathString().join("_");
|
||||
if (cp.isEmpty()) continue;
|
||||
if (!eh_map.contains(cp)) continue;
|
||||
|
||||
Reference in New Issue
Block a user