29.04.2014 - Version 0.4.0_prealpha. PICodeParser, namespace PICodeInfo, new tool "pip_cmg" in dir "code_model_generator". New feature in PIIODevice - "createFromFullPath", all parameters of all I/O devices now works with PIObjects`s properties.
This commit is contained in:
48
code_model_generator/main_test.cpp
Normal file
48
code_model_generator/main_test.cpp
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
PIP - Platform Independent Primitives
|
||||
Code model generator
|
||||
Copyright (C) 2014 Ivan Pelipenko peri4ko@gmail.com
|
||||
|
||||
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
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "pitimer.h"
|
||||
#include "test.h"
|
||||
|
||||
void event(void * , int d) {
|
||||
piCout << "tick" << d;
|
||||
}
|
||||
|
||||
PITimer tm;
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
//tm.setSlot(event);
|
||||
//tm.start(200);
|
||||
/*execFunction(&tm, "setSlot", PIVariant::fromValue<TimerEvent>(event));
|
||||
execFunction(&tm, "start", 200);
|
||||
piMSleep(1000);
|
||||
execFunction(&tm, "addDelimiter", 2);
|
||||
piMSleep(1000);
|
||||
execFunction(&tm, "stop");
|
||||
execFunction(&tm, "stop_");
|
||||
piMSleep(1000);*/
|
||||
typedef std::pair<PIString, PICodeInfo::ClassInfo * > mpair;
|
||||
piForeachC (mpair & i, *(PICodeInfo::classesInfo))
|
||||
piCout << *i.second;
|
||||
piCout << "\n\n";
|
||||
typedef std::pair<PIString, PICodeInfo::EnumInfo * > epair;
|
||||
piForeachC (epair & i, *(PICodeInfo::enumsInfo))
|
||||
piCout << *i.second;
|
||||
return 0;
|
||||
};
|
||||
Reference in New Issue
Block a user