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
6589d9a2
Commit
6589d9a2
authored
May 19, 2011
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(IOControl): попытался частично перевести сообщения на английский
parent
3d967054
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
IOControl.cc
extensions/IOControl/IOControl.cc
+14
-13
No files found.
extensions/IOControl/IOControl.cc
View file @
6589d9a2
...
@@ -719,8 +719,8 @@ bool IOControl::initIOItem( UniXML_iterator& it )
...
@@ -719,8 +719,8 @@ bool IOControl::initIOItem( UniXML_iterator& it )
if
(
c
.
empty
()
||
inf
.
ncard
<
0
||
inf
.
ncard
>=
(
int
)
cards
.
size
()
)
if
(
c
.
empty
()
||
inf
.
ncard
<
0
||
inf
.
ncard
>=
(
int
)
cards
.
size
()
)
{
{
unideb
[
Debug
::
LEVEL3
]
<<
myname
unideb
[
Debug
::
LEVEL3
]
<<
myname
<<
"(initIOItem):
Не указан или неверный номер карты ("
<<
"(initIOItem):
Unknown or bad card number ("
<<
inf
.
ncard
<<
")
для "
<<
it
.
getProp
(
"name"
)
<<
inf
.
ncard
<<
")
for "
<<
it
.
getProp
(
"name"
)
<<
" set default="
<<
defCardNum
<<
endl
;
<<
" set default="
<<
defCardNum
<<
endl
;
inf
.
ncard
=
defCardNum
;
inf
.
ncard
=
defCardNum
;
}
}
...
@@ -750,8 +750,8 @@ bool IOControl::initIOItem( UniXML_iterator& it )
...
@@ -750,8 +750,8 @@ bool IOControl::initIOItem( UniXML_iterator& it )
inf
.
channel
=
it
.
getIntProp
(
"channel"
);
inf
.
channel
=
it
.
getIntProp
(
"channel"
);
if
(
inf
.
channel
<
0
||
inf
.
channel
>
32
)
if
(
inf
.
channel
<
0
||
inf
.
channel
>
32
)
{
{
unideb
[
Debug
::
WARN
]
<<
myname
<<
"(readItem):
неизвестный канал
: "
<<
inf
.
channel
unideb
[
Debug
::
WARN
]
<<
myname
<<
"(readItem):
Unknown channel
: "
<<
inf
.
channel
<<
"
для
"
<<
it
.
getProp
(
"name"
)
<<
endl
;
<<
"
for
"
<<
it
.
getProp
(
"name"
)
<<
endl
;
return
false
;
return
false
;
}
}
...
@@ -770,17 +770,18 @@ bool IOControl::initIOItem( UniXML_iterator& it )
...
@@ -770,17 +770,18 @@ bool IOControl::initIOItem( UniXML_iterator& it )
inf
.
range
=
it
.
getIntProp
(
"range"
);
inf
.
range
=
it
.
getIntProp
(
"range"
);
if
(
inf
.
range
<
0
||
inf
.
range
>
3
)
if
(
inf
.
range
<
0
||
inf
.
range
>
3
)
{
{
unideb
[
Debug
::
CRIT
]
<<
myname
<<
"(readItem):
неизвестный коэффициент усиления(range)
: "
<<
inf
.
range
unideb
[
Debug
::
CRIT
]
<<
myname
<<
"(readItem):
Unknown 'range'
: "
<<
inf
.
range
<<
"
для "
<<
it
.
getProp
(
"name"
)
<<
"
for "
<<
it
.
getProp
(
"name"
)
<<
"
Разрешнный диапазон:
range=[0..3]"
<<
endl
;
<<
"
Must be
range=[0..3]"
<<
endl
;
return
false
;
return
false
;
}
}
inf
.
aref
=
it
.
getIntProp
(
"aref"
);
inf
.
aref
=
it
.
getIntProp
(
"aref"
);
if
(
inf
.
aref
<
0
||
inf
.
aref
>
3
)
if
(
inf
.
aref
<
0
||
inf
.
aref
>
3
)
{
{
unideb
[
Debug
::
CRIT
]
<<
myname
<<
"(readItem): неизвестный тип подключения: "
<<
inf
.
aref
unideb
[
Debug
::
CRIT
]
<<
myname
<<
"(readItem): Unknown 'aref': "
<<
inf
.
aref
<<
" для "
<<
it
.
getProp
(
"name"
)
<<
endl
;
<<
" for "
<<
it
.
getProp
(
"name"
)
<<
". Must be aref=[0..3]"
<<
endl
;
return
false
;
return
false
;
}
}
}
}
...
@@ -1540,8 +1541,8 @@ void IOControl::waitSM()
...
@@ -1540,8 +1541,8 @@ void IOControl::waitSM()
if
(
!
shm
->
waitSMready
(
smReadyTimeout
,
50
)
)
if
(
!
shm
->
waitSMready
(
smReadyTimeout
,
50
)
)
{
{
ostringstream
err
;
ostringstream
err
;
err
<<
myname
<<
"(execute):
Не дождались готовности SharedMemory к работе в течение
"
err
<<
myname
<<
"(execute):
did not wait for the ready 'SharedMemory'. Timeout
"
<<
smReadyTimeout
<<
"
мсек
"
;
<<
smReadyTimeout
<<
"
msec
"
;
unideb
[
Debug
::
CRIT
]
<<
err
.
str
()
<<
endl
;
unideb
[
Debug
::
CRIT
]
<<
err
.
str
()
<<
endl
;
throw
SystemError
(
err
.
str
());
throw
SystemError
(
err
.
str
());
...
@@ -1614,8 +1615,8 @@ void IOControl::buildCardsList()
...
@@ -1614,8 +1615,8 @@ void IOControl::buildCardsList()
if
(
iodev
.
empty
()
||
iodev
==
"/dev/null"
)
if
(
iodev
.
empty
()
||
iodev
==
"/dev/null"
)
{
{
cards
[
lastnum
]
=
NULL
;
cards
[
lastnum
]
=
NULL
;
unideb
[
Debug
::
LEVEL3
]
<<
myname
<<
"(init):
КАРТА N"
<<
lastnum
unideb
[
Debug
::
LEVEL3
]
<<
myname
<<
"(init):
Card N"
<<
lastnum
<<
"
ОТКЛЮЧЕНА (TestMode)!!! в КАЧЕСТВЕ УСТРОЙСТВА УКАЗАНО '"
<<
"
DISABLED (TestMode)!!! iodev='"
<<
iodev
<<
"'"
<<
endl
;
<<
iodev
<<
"'"
<<
endl
;
cout
<<
"******************** CARD"
<<
lastnum
<<
": IO IMITATOR MODE ****************"
<<
endl
;
cout
<<
"******************** CARD"
<<
lastnum
<<
": IO IMITATOR MODE ****************"
<<
endl
;
continue
;
continue
;
...
...
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