git-svn-id: svn://db.shs.com.ru/libs@99 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "cdutils_core.h"
|
||||
#include "cdutils_k_parser.h"
|
||||
#include "piconfig.h"
|
||||
|
||||
using namespace CDUtils;
|
||||
@@ -82,14 +83,14 @@ Core::Core(const char * conf) {
|
||||
PIString s(conf);
|
||||
connection.configureFromString(&s);
|
||||
connection.start();
|
||||
k_[1] = KType(1, "123", "120+3", "comment");
|
||||
/*k_[1] = KType(1, "123", "120+3", "comment");
|
||||
k_[2] = KType(2, "1", "2", "comm");
|
||||
k_[4] = KType(4, "-0.6", "-6/10", "mment");
|
||||
k_.section(10)[5] = KType(5, "8", "2*2*2", "88");
|
||||
k_.section(10).section(50)[100] = KType(100, "8", "2*2*2", "88");
|
||||
k_.section(11)[3] = KType(3, "1", "1", "88");
|
||||
k_.section(11)[4] = KType(4, "0", "0", "88");
|
||||
k_.section(11)[6] = KType(6, "0", "0", "88");
|
||||
k_.section(11)[6] = KType(6, "0", "0", "88");*/
|
||||
//piCout << s;
|
||||
}
|
||||
|
||||
@@ -120,6 +121,11 @@ void Core::k_read(PIIODevice * d) {
|
||||
}
|
||||
|
||||
|
||||
void Core::k_parse(PIIODevice * d) {
|
||||
k_ = KParser::parse(d);
|
||||
}
|
||||
|
||||
|
||||
void CDUtils::Core::dataReceived(const PIString & from, const PIByteArray & data) {
|
||||
piCout << from << data;
|
||||
if (data.size_s() < 4) return;
|
||||
|
||||
Reference in New Issue
Block a user