Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
0c4a3da1
Commit
0c4a3da1
authored
Jun 07, 2015
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(codegen): добавил для пользовательских данных функцию getMonitInfo()
parent
5b906cdc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
7 deletions
+11
-7
TODO
TODO
+0
-5
ctl-cpp-common.xsl
Utilities/codegen/ctl-cpp-common.xsl
+3
-0
libuniset2.spec
conf/libuniset2.spec
+4
-1
uniset-codegen.dox
docs/DocPages/uniset-codegen.dox
+3
-0
UObject_SK.h
extensions/include/UObject_SK.h
+0
-0
UObject_SK.cc
extensions/lib/UObject_SK.cc
+0
-0
VMonitor.h
include/VMonitor.h
+1
-1
No files found.
TODO
View file @
0c4a3da1
...
...
@@ -46,12 +46,7 @@ SQL:
====
- добавить работу с History (при передаче указателя на SM в конструкторе).
Debug:
- в codegen встроить получение состояния всех переменных (dumpIO() + UniSetObject::getInfo()),
возможно написать на python утилиту "монитор".
- Сделать макрос с простым названием например NOTE(variable)(snap?)... пишуший в map var=value, а потом показывающий в getInfo() (и может dumpIO())
- дописать в codegen документацию по запуску и управлению логами через LogServer
...
...
Utilities/codegen/ctl-cpp-common.xsl
View file @
0c4a3da1
...
...
@@ -260,6 +260,8 @@
virtual void timerInfo( const UniSetTypes::TimerMessage* tm ) override{}
virtual void sigterm( int signo ) override;
virtual bool activateObject() override;
virtual std::string getMonitInfo(){ return ""; } /*!
<
пользовательская информация выводимая в getInfo() */
virtual void testMode( bool state );
void updatePreviousValues();
void checkSensors();
...
...
@@ -432,6 +434,7 @@ UniSetTypes::SimpleInfo* <xsl:value-of select="$CLASSNAME"/>_SK::getInfo()
inf
<<
i->info
<<
endl;
inf
<<
dumpIO()
<<
endl;
inf
<<
vmon.pretty_str()
<<
endl;
inf
<<
getMonitInfo()
<<
endl;
i->info = inf.str().c_str();
...
...
conf/libuniset2.spec
View file @
0c4a3da1
...
...
@@ -13,7 +13,7 @@
Name: libuniset2
Version: 2.1
Release: alt7.
1
Release: alt7.
2
Summary: UniSet - library for building distributed industrial control systems
...
...
@@ -456,6 +456,9 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
# ..
%changelog
* Sun Jun 07 2015 Pavel Vainerman <pv@altlinux.ru> 2.1-alt7.2
- (codegen): add user info function (getMonitInfo())
* Sat Jun 06 2015 Pavel Vainerman <pv@altlinux.ru> 2.1-alt7.1
- (vmonit): new utilities (variables monitor)
...
...
docs/DocPages/uniset-codegen.dox
View file @
0c4a3da1
...
...
@@ -486,4 +486,7 @@ MyClass_SK.cc: myclass.src.xml
После этого они появяться в выводе утилиты uniset2-vmonit
\warning На данный момент поддерживаются только простые типы переменных (bool,short,int,long,double,float см. VMonitor)
Для пользовательской информации введена виртуальная функция std::string getMonitInfo(), переопределив которую,
можно сформировать свою информацию, которую можно будет удалённо читать.
*/
extensions/include/UObject_SK.h
View file @
0c4a3da1
This diff is collapsed.
Click to expand it.
extensions/lib/UObject_SK.cc
View file @
0c4a3da1
This diff is collapsed.
Click to expand it.
include/VMonitor.h
View file @
0c4a3da1
...
...
@@ -88,7 +88,7 @@
private:
int myvar1;
bool myvar2;
lo
gn
myvar3;
lo
ng
myvar3;
...
VMonitor vmon;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment