16.01.2012 - version 0.1.1
This commit is contained in:
2
AUTHORS.txt
Normal file
2
AUTHORS.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
Pelipenko Ivan (peri4) peri4ko@gmail.com
|
||||||
|
Bychkov Andrey (blizer) wapmobil@gmail.com
|
||||||
2
main.cpp
2
main.cpp
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Test program
|
Test program
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Bit array
|
Bit array
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Byte array
|
Byte array
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Byte array
|
Byte array
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
2
pichar.h
2
pichar.h
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Unicode char
|
Unicode char
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Command-Line Parser
|
Command-Line Parser
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
2
picli.h
2
picli.h
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Command-Line Parser
|
Command-Line Parser
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Text codings coder, based on "iconv"
|
Text codings coder, based on "iconv"
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
|
|
||||||
PIStringList PICodec::availableCodecs() {
|
PIStringList PICodec::availableCodecs() {
|
||||||
exec("iconv", "-l");
|
exec("/usr/bin/iconv", "-l");
|
||||||
waitForFinish();
|
waitForFinish();
|
||||||
PIString str(readOutput());
|
PIString str(readOutput());
|
||||||
str.cutLeft(str.find("\n "));
|
str.cutLeft(str.find("\n "));
|
||||||
@@ -35,7 +35,7 @@ PIByteArray PICodec::exec_iconv(const PIString & from, const PIString & to, cons
|
|||||||
tf.clear();
|
tf.clear();
|
||||||
tf << str;
|
tf << str;
|
||||||
tf.close();
|
tf.close();
|
||||||
exec("iconv", ("-f=" + from), ("-t=" + to), tf.path());
|
exec("/usr/bin/iconv", ("-f=" + from), ("-t=" + to), tf.path());
|
||||||
waitForFinish();
|
waitForFinish();
|
||||||
return readOutput();
|
return readOutput();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Text codings coder, based on "iconv"
|
Text codings coder, based on "iconv"
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Config parser
|
Config parser
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Config parser
|
Config parser
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Console output/input
|
Console output/input
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Console output/input
|
Console output/input
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Generic containers, based on STL
|
Generic containers, based on STL
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Directory
|
Directory
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
2
pidir.h
2
pidir.h
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Directory
|
Directory
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Ethernet, UDP
|
Ethernet, UDP
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Ethernet, UDP
|
Ethernet, UDP
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Evaluator designed for stream computing
|
Evaluator designed for stream computing
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Evaluator designed for stream computing
|
Evaluator designed for stream computing
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
File
|
File
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
2
pifile.h
2
pifile.h
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
File
|
File
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Geometry
|
Geometry
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Global includes
|
Global includes
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Keyboard grabber for console
|
Keyboard grabber for console
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Keyboard grabber for console
|
Keyboard grabber for console
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Math
|
Math
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
2
pimath.h
2
pimath.h
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Math
|
Math
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Counter of some PIP types
|
Counter of some PIP types
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Counter of some PIP types
|
Counter of some PIP types
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Multiprotocol
|
Multiprotocol
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Multiprotocol
|
Multiprotocol
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Mutex
|
Mutex
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Object, base class of some PIP classes, provide EVENT -> EVENT_HANDLER mechanism
|
Object, base class of some PIP classes, provide EVENT -> EVENT_HANDLER mechanism
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Object, base class of some PIP classes, provide EVENT -> EVENT_HANDLER mechanism
|
Object, base class of some PIP classes, provide EVENT -> EVENT_HANDLER mechanism
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
2
pip.h
2
pip.h
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
All includes
|
All includes
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
[Project]
|
[Project]
|
||||||
Manager=KDevCMakeManager
|
Manager=
|
||||||
Name=pip
|
Name=pip
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Process
|
Process
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -143,7 +143,7 @@ void PIProcess::run() {
|
|||||||
cout << "[PIProcess] \"CreateProcess\" error, " << errorString() << endl;
|
cout << "[PIProcess] \"CreateProcess\" error, " << errorString() << endl;
|
||||||
#else
|
#else
|
||||||
if (execve(str.c_str(), a, e) < 0)
|
if (execve(str.c_str(), a, e) < 0)
|
||||||
cout << "[PIProcess] \"execvpe\" error, " << errorString() << endl;
|
cout << "[PIProcess] \"execve\" error, " << errorString() << endl;
|
||||||
} else {
|
} else {
|
||||||
msleep(1);
|
msleep(1);
|
||||||
//cout << "wait" << endl;
|
//cout << "wait" << endl;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Process
|
Process
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Protocol, input/output channel (COM, UDP)
|
Protocol, input/output channel (COM, UDP)
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com, Bychkov Andrey wapmobil@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Protocol, input/output channel (COM, UDP)
|
Protocol, input/output channel (COM, UDP)
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com, Bychkov Andrey wapmobil@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -67,9 +67,10 @@ public:
|
|||||||
EVENT_HANDLER0(PIProtocol, void, stopReceive);
|
EVENT_HANDLER0(PIProtocol, void, stopReceive);
|
||||||
void setExpectedFrequency(float frequency); // for connection quality diagnostic
|
void setExpectedFrequency(float frequency); // for connection quality diagnostic
|
||||||
void setReceiverDevice(const PIString & device, PISerial::Speed speed, bool force = false); // for Serial
|
void setReceiverDevice(const PIString & device, PISerial::Speed speed, bool force = false); // for Serial
|
||||||
void setReceiverData(void * dataPtr, int dataSize) {this->dataPtr = (uchar * )dataPtr; this->dataSize = dataSize;}
|
void setReceiverData(void * dataPtr, int dataSize) {this->dataPtr = (uchar * )dataPtr; this->dataSize = dataSize; if (type_rec == PIProtocol::Serial || type_send == PIProtocol::Serial) ser->setReadData(headerPtr, headerSize, dataSize);}
|
||||||
|
void setReceiverDataHeader(void * headerPtr, int headerSize) {this->headerPtr = (uchar * )dataPtr; this->headerSize = headerSize; if (type_rec == PIProtocol::Serial || type_send == PIProtocol::Serial) ser->setReadData(headerPtr, headerSize, dataSize);}
|
||||||
void setReceiverAddress(const PIString & ip, int port, bool force = false); // for Ethernet
|
void setReceiverAddress(const PIString & ip, int port, bool force = false); // for Ethernet
|
||||||
void setReceiverParameters(PIFlags<PISerial::Parameters> parameters) {if (type_send == PIProtocol::Serial) ser->setParameters(parameters);} // for Serial
|
void setReceiverParameters(PIFlags<PISerial::Parameters> parameters) {if (type_rec == PIProtocol::Serial || type_send == PIProtocol::Serial) ser->setParameters(parameters);} // for Serial
|
||||||
void setReceiveSlot(ReceiveFunc slot) {ret_func = slot;}
|
void setReceiveSlot(ReceiveFunc slot) {ret_func = slot;}
|
||||||
float expectedFrequency() const {return exp_freq;}
|
float expectedFrequency() const {return exp_freq;}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
COM
|
COM
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com, Bychkov Andrey wapmobil@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
COM
|
COM
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com, Bychkov Andrey wapmobil@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Signals
|
Signals
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Signals
|
Signals
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
String
|
String
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
String
|
String
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Process resource monitor
|
Process resource monitor
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Process resource monitor
|
Process resource monitor
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Thread
|
Thread
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Thread
|
Thread
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Timer
|
Timer
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Timer
|
Timer
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Variable, Struct (simple serialization)
|
Variable, Struct (simple serialization)
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
PIP - Platform Independent Primitives
|
PIP - Platform Independent Primitives
|
||||||
Variable, Struct (simple serialization)
|
Variable, Struct (simple serialization)
|
||||||
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
|
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
Reference in New Issue
Block a user