git-svn-id: svn://db.shs.com.ru/libs@99 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
#include "cdutils_k.h"
|
||||
#include "cdutils_core.h"
|
||||
#include "piethernet.h"
|
||||
#include "piiostring.h"
|
||||
#include "pifile.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
PIEthernet eth;
|
||||
eth.send("127.0.0.1:16102", PIByteArray("data\n", 5));
|
||||
eth.send("127.0.0.1:26102", PIByteArray("data\n", 5));
|
||||
eth.send("127.0.0.1:36102", PIByteArray("data\n", 5));
|
||||
PIString s = "[k]\n\
|
||||
PIString s;/* = "[k]\n\
|
||||
1.f = 120+3 #s comment\n\
|
||||
1.v = 123\n\
|
||||
2.f = 2 #s comm\n\
|
||||
@@ -27,14 +29,20 @@ int main(int argc, char *argv[]) {
|
||||
4.v = 0 #s 88 \n\
|
||||
6.f = 0\n\
|
||||
6.v = 0 #s 881 \n\
|
||||
[]\n\
|
||||
";
|
||||
[]\n";
|
||||
PIIOString ios(&s);
|
||||
CDUtils::K.read(&ios);
|
||||
|
||||
s.clear();
|
||||
PIIOString iosw(&s);
|
||||
CDUtils::K.write(&iosw);
|
||||
piCout << s;*/
|
||||
PIFile f;
|
||||
f.open("SH_base.h", PIIODevice::ReadOnly);
|
||||
CDUtils::K.parse(&f);
|
||||
PIIOString iosw(&s);
|
||||
PIFile wf("1.txt", PIIODevice::ReadWrite);
|
||||
CDUtils::K.write(&wf);
|
||||
piCout << s;
|
||||
//piMSleep(1000);
|
||||
//CDUtils::Core::instance()->test();
|
||||
|
||||
Reference in New Issue
Block a user