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
f051ff0c
Commit
f051ff0c
authored
Jan 29, 2014
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Удалил "хак" - функцию getObjectType
parent
11b83566
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
10 deletions
+7
-10
IOController.h
include/IOController.h
+1
-1
IONotifyController.h
include/IONotifyController.h
+1
-2
UniSetActivator.h
include/UniSetActivator.h
+1
-1
UniSetManager.h
include/UniSetManager.h
+1
-1
UniSetObject.h
include/UniSetObject.h
+3
-2
UniSetTypes.h
include/UniSetTypes.h
+0
-3
No files found.
include/IOController.h
View file @
f051ff0c
...
...
@@ -45,7 +45,7 @@ class IOController:
IOController
(
UniSetTypes
::
ObjectId
id
);
~
IOController
();
virtual
UniSetTypes
::
ObjectType
getType
(){
return
UniSetTypes
::
get
ObjectType
(
"IOController"
);
}
virtual
UniSetTypes
::
ObjectType
getType
(){
return
UniSetTypes
::
ObjectType
(
"IOController"
);
}
virtual
CORBA
::
Long
getValue
(
const
IOController_i
::
SensorInfo
&
si
);
...
...
include/IONotifyController.h
View file @
f051ff0c
...
...
@@ -136,8 +136,7 @@ class IONotifyController:
virtual
~
IONotifyController
();
virtual
UniSetTypes
::
ObjectType
getType
(){
return
UniSetTypes
::
getObjectType
(
"IONotifyController"
);
}
virtual
UniSetTypes
::
ObjectType
getType
(){
return
UniSetTypes
::
ObjectType
(
"IONotifyController"
);
}
virtual
void
askSensor
(
const
IOController_i
::
SensorInfo
&
si
,
const
UniSetTypes
::
ConsumerInfo
&
ci
,
UniversalIO
::
UIOCommand
cmd
);
virtual
void
askThreshold
(
const
IOController_i
::
SensorInfo
&
si
,
const
UniSetTypes
::
ConsumerInfo
&
ci
,
...
...
include/UniSetActivator.h
View file @
f051ff0c
...
...
@@ -59,7 +59,7 @@ class UniSetActivator:
inline
void
oakill
(
int
signo
){
raise
(
signo
);}
virtual
UniSetTypes
::
ObjectType
getType
(){
return
UniSetTypes
::
get
ObjectType
(
"UniSetActivator"
);
}
virtual
UniSetTypes
::
ObjectType
getType
(){
return
UniSetTypes
::
ObjectType
(
"UniSetActivator"
);
}
protected
:
...
...
include/UniSetManager.h
View file @
f051ff0c
...
...
@@ -62,7 +62,7 @@ class UniSetManager:
UniSetManager
(
const
std
::
string
&
name
,
const
std
::
string
&
section
);
virtual
~
UniSetManager
();
virtual
UniSetTypes
::
ObjectType
getType
(){
return
UniSetTypes
::
get
ObjectType
(
"UniSetManager"
);
}
virtual
UniSetTypes
::
ObjectType
getType
(){
return
UniSetTypes
::
ObjectType
(
"UniSetManager"
);
}
// ------ функции объявленные в интерфейсе(IDL) ------
virtual
void
broadcast
(
const
UniSetTypes
::
TransportMessage
&
msg
);
...
...
include/UniSetObject.h
View file @
f051ff0c
...
...
@@ -74,9 +74,10 @@ class UniSetObject:
virtual
CORBA
::
Boolean
exist
();
virtual
char
*
getName
(){
return
(
char
*
)
myname
.
c_str
();}
virtual
UniSetTypes
::
ObjectId
getId
(){
return
myid
;
}
const
UniSetTypes
::
ObjectId
getId
()
const
{
return
myid
;
}
virtual
UniSetTypes
::
ObjectType
getType
()
{
return
UniSetTypes
::
getObjectType
(
"UniSetObject"
);
}
inline
const
UniSetTypes
::
ObjectId
getId
()
const
{
return
myid
;
}
virtual
UniSetTypes
::
ObjectType
getType
()
{
return
UniSetTypes
::
ObjectType
(
"UniSetObject"
);
}
virtual
UniSetTypes
::
SimpleInfo
*
getInfo
();
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
UniSetObject
&
obj
);
...
...
include/UniSetTypes.h
View file @
f051ff0c
...
...
@@ -81,9 +81,6 @@ namespace UniSetTypes
typedef
CORBA
::
Object_ptr
ObjectPtr
;
/*!< Ссылка на объект регистрируемый в ObjectRepository */
typedef
CORBA
::
Object_var
ObjectVar
;
/*!< Ссылка на объект регистрируемый в ObjectRepository */
/*! Функция делает ObjectType из const char * (переводит const-строку в обычную, что плохо, но мы обещаем не писать в неё :) ) */
inline
static
UniSetTypes
::
ObjectType
getObjectType
(
const
char
*
name
)
{
const
void
*
t
=
name
;
return
(
UniSetTypes
::
ObjectType
)
t
;
}
UniversalIO
::
IOType
getIOType
(
const
std
::
string
&
s
);
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
UniversalIO
::
IOType
t
);
...
...
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