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
38d8cc7b
Commit
38d8cc7b
authored
Mar 28, 2010
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into utf8
parents
b3b9007d
4974e60b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
23 deletions
+17
-23
test.xml
conf/test.xml
+2
-2
start_fg.sh
extensions/RTUExchange/start_fg.sh
+3
-2
MessageType.h
include/MessageType.h
+1
-1
UniSetTypes.h
include/UniSetTypes.h
+10
-0
UniversalInterface.cc
src/Interfaces/UniversalInterface.cc
+1
-4
ObjectIndex_XML.cc
src/ObjectRepository/ObjectIndex_XML.cc
+0
-7
ObjectIndex_idXML.cc
src/ObjectRepository/ObjectIndex_idXML.cc
+0
-7
No files found.
conf/test.xml
View file @
38d8cc7b
...
@@ -82,11 +82,11 @@
...
@@ -82,11 +82,11 @@
</MBSlave1>
</MBSlave1>
<R
SExchange
name=
"RS
Exchange"
speed=
"38400"
>
<R
TUExchange
name=
"RTU
Exchange"
speed=
"38400"
>
<DeviceList>
<DeviceList>
<item
addr=
"0x02"
force_disconnect=
"1"
speed=
"9600"
respondSensor=
"RespondRTU_S"
timeout=
"5000"
invert=
"0"
/>
<item
addr=
"0x02"
force_disconnect=
"1"
speed=
"9600"
respondSensor=
"RespondRTU_S"
timeout=
"5000"
invert=
"0"
/>
</DeviceList>
</DeviceList>
</R
S
Exchange>
</R
TU
Exchange>
<UDPExchange
name=
"UDPExchange"
/>
<UDPExchange
name=
"UDPExchange"
/>
<UDPExchange2
name=
"UDPExchange2"
/>
<UDPExchange2
name=
"UDPExchange2"
/>
...
...
extensions/RTUExchange/start_fg.sh
View file @
38d8cc7b
#!/bin/sh
#!/bin/sh
uniset-start.sh
-f
./uniset-rtuexchange
--confile
test.xml
\
uniset-start.sh
-f
./uniset-rtuexchange
--confile
test.xml
\
--smemory-id
SharedMemory
\
--rs-dev
/dev/cbsideA0
\
--rs-dev
/dev/cbsideA0
\
--rs-name
R
S
Exchange
\
--rs-name
R
TU
Exchange
\
--rs-speed
38400
\
--rs-speed
38400
\
--rs-filter-field
rs
\
--rs-filter-field
rs
\
--rs-filter-value
3
\
--rs-filter-value
1
\
--dlog-add-levels
info,crit,warn
\
--dlog-add-levels
info,crit,warn
\
--rs-force
0
\
--rs-force
0
\
--rs-force-out
0
\
--rs-force-out
0
\
...
...
include/MessageType.h
View file @
38d8cc7b
...
@@ -87,7 +87,7 @@ namespace UniSetTypes
...
@@ -87,7 +87,7 @@ namespace UniSetTypes
inline
bool
operator
<
(
const
VoidMessage
&
msg
)
const
inline
bool
operator
<
(
const
VoidMessage
&
msg
)
const
{
{
if
(
priority
!=
msg
.
priority
)
if
(
priority
!=
msg
.
priority
)
return
priority
<
msg
.
priority
;
return
priority
<
msg
.
priority
;
if
(
tm
.
tv_sec
!=
msg
.
tm
.
tv_sec
)
if
(
tm
.
tv_sec
!=
msg
.
tm
.
tv_sec
)
return
tm
.
tv_sec
>=
msg
.
tm
.
tv_sec
;
return
tm
.
tv_sec
>=
msg
.
tm
.
tv_sec
;
...
...
include/UniSetTypes.h
View file @
38d8cc7b
...
@@ -113,6 +113,11 @@ namespace UniSetTypes
...
@@ -113,6 +113,11 @@ namespace UniSetTypes
UniSetTypes
::
MessageCode
code
;
/*!< идентификатор */
UniSetTypes
::
MessageCode
code
;
/*!< идентификатор */
std
::
string
text
;
/*!< текст */
std
::
string
text
;
/*!< текст */
std
::
string
idname
;
/*!< текстовое название идентификатора */
std
::
string
idname
;
/*!< текстовое название идентификатора */
inline
bool
operator
<
(
const
MessageInfo
&
m
)
const
{
return
(
code
<
m
.
code
);
}
};
};
/*! Информация об имени объекта */
/*! Информация об имени объекта */
...
@@ -126,6 +131,11 @@ namespace UniSetTypes
...
@@ -126,6 +131,11 @@ namespace UniSetTypes
char
*
repName
;
/*!< текстовое имя для регистрации в репозитории */
char
*
repName
;
/*!< текстовое имя для регистрации в репозитории */
char
*
textName
;
/*!< текстовое имя */
char
*
textName
;
/*!< текстовое имя */
void
*
data
;
void
*
data
;
inline
bool
operator
<
(
const
ObjectInfo
&
o
)
const
{
return
(
id
<
o
.
id
);
}
};
};
typedef
std
::
list
<
NodeInfo
>
ListOfNode
;
typedef
std
::
list
<
NodeInfo
>
ListOfNode
;
...
...
src/Interfaces/UniversalInterface.cc
View file @
38d8cc7b
...
@@ -2280,10 +2280,7 @@ ObjectPtr UniversalInterface::CacheOfResolve::resolve( ObjectId id, ObjectId nod
...
@@ -2280,10 +2280,7 @@ ObjectPtr UniversalInterface::CacheOfResolve::resolve( ObjectId id, ObjectId nod
// то мы делаем _duplicate....
// то мы делаем _duplicate....
if
(
!
CORBA
::
is_nil
(
it
->
second
.
ptr
)
)
if
(
!
CORBA
::
is_nil
(
it
->
second
.
ptr
)
)
return
it
->
second
.
ptr
.
_retn
();
return
CORBA
::
Object
::
_duplicate
(
it
->
second
.
ptr
);
// return it->second.ptr;
// return CORBA::Object::_duplicate(it->second.ptr);
// return it->second.ptr.out(); // CORBA::Object::_duplicate(it->second.ptr);
throw
NameNotFound
();
throw
NameNotFound
();
}
}
...
...
src/ObjectRepository/ObjectIndex_XML.cc
View file @
38d8cc7b
...
@@ -284,12 +284,5 @@ const ObjectInfo* ObjectIndex_XML::getObjectInfo( const ObjectId id )
...
@@ -284,12 +284,5 @@ const ObjectInfo* ObjectIndex_XML::getObjectInfo( const ObjectId id )
return
&
omap
[
id
];
return
&
omap
[
id
];
return
NULL
;
return
NULL
;
/*
ObjectInfo ret;
ret.id = DefaultObjectId;
ret.repName = "";
ret.textName = "";
return ret;
*/
}
}
// ------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------
src/ObjectRepository/ObjectIndex_idXML.cc
View file @
38d8cc7b
...
@@ -228,12 +228,5 @@ const ObjectInfo* ObjectIndex_idXML::getObjectInfo( const ObjectId id )
...
@@ -228,12 +228,5 @@ const ObjectInfo* ObjectIndex_idXML::getObjectInfo( const ObjectId id )
return
&
(
it
->
second
);
return
&
(
it
->
second
);
return
NULL
;
return
NULL
;
/*
ObjectInfo ret;
ret.id = DefaultObjectId;
ret.repName = "";
ret.textName = "";
return ret;
*/
}
}
// ------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------
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