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
8baac8a9
Commit
8baac8a9
authored
Nov 09, 2016
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update TODO (и небольшая правка кода)
parent
fbf7cb84
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
28 deletions
+17
-28
TODO
TODO
+5
-0
PyUInterface.cc
python/lib/pyUniSet/PyUInterface.cc
+12
-28
No files found.
TODO
View file @
8baac8a9
...
@@ -46,6 +46,11 @@ SQL:
...
@@ -46,6 +46,11 @@ SQL:
Debug:
Debug:
- дописать в codegen документацию по запуску и управлению логами через LogServer
- дописать в codegen документацию по запуску и управлению логами через LogServer
HTTP API:
- запрос списка заказчиков по конкретным датчикам
- запрос о том, кто последний сохранил указанный датчик
Version 2.5
Version 2.5
============
============
- smonit запись значений в файл (csv?,sqlite?,gnuplot)
- smonit запись значений в файл (csv?,sqlite?,gnuplot)
...
...
python/lib/pyUniSet/PyUInterface.cc
View file @
8baac8a9
...
@@ -64,25 +64,16 @@ long pyUInterface::getValue( long id )throw(UException)
...
@@ -64,25 +64,16 @@ long pyUInterface::getValue( long id )throw(UException)
using
namespace
uniset
;
using
namespace
uniset
;
UniversalIO
::
IOType
t
=
conf
->
getIOType
(
id
);
UniversalIO
::
IOType
t
=
conf
->
getIOType
(
id
);
if
(
t
==
UniversalIO
::
UnknownIOType
)
try
{
switch
(
t
)
{
case
UniversalIO
:
:
DI
:
case
UniversalIO
:
:
DO
:
case
UniversalIO
:
:
AI
:
case
UniversalIO
:
:
AO
:
return
uInterface
->
getValue
(
id
);
break
;
default
:
{
{
ostringstream
e
;
ostringstream
e
;
e
<<
"(getValue): Unknown iotype for id="
<<
id
;
e
<<
"(getValue): Unknown iotype for id="
<<
id
;
throw
UException
(
e
.
str
());
throw
UException
(
e
.
str
());
}
}
}
try
{
return
uInterface
->
getValue
(
id
);
}
}
catch
(
UException
&
ex
)
catch
(
UException
&
ex
)
{
{
...
@@ -105,26 +96,19 @@ void pyUInterface::setValue( long id, long val, long supplier )throw(UException)
...
@@ -105,26 +96,19 @@ void pyUInterface::setValue( long id, long val, long supplier )throw(UException)
if
(
!
conf
||
!
uInterface
)
if
(
!
conf
||
!
uInterface
)
throw
USysError
();
throw
USysError
();
UniversalIO
::
IOType
t
=
conf
->
getIOType
(
id
);
using
namespace
uniset
;
try
{
switch
(
t
)
{
case
UniversalIO
:
:
DI
:
case
UniversalIO
:
:
DO
:
case
UniversalIO
:
:
AI
:
case
UniversalIO
:
:
AO
:
uInterface
->
setValue
(
id
,
val
,
supplier
);
break
;
default
:
UniversalIO
::
IOType
t
=
conf
->
getIOType
(
id
);
if
(
t
==
UniversalIO
::
UnknownIOType
)
{
{
ostringstream
e
;
ostringstream
e
;
e
<<
"(setValue): Unknown iotype for id="
<<
id
;
e
<<
"(setValue): Unknown iotype for id="
<<
id
;
throw
UException
(
e
.
str
());
throw
UException
(
e
.
str
());
}
}
}
try
{
uInterface
->
setValue
(
id
,
val
,
supplier
);
}
}
catch
(
UException
&
ex
)
catch
(
UException
&
ex
)
{
{
...
...
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