Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cs
ds
galildio
Commits
30e3b36c
Commit
30e3b36c
authored
Jun 09, 2020
by
Alessandro Abrami
Browse files
09/06/2020:
Modificati Tag CVS Risolto memory leak
parent
f0d1a83f
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/Galildio.cpp
View file @
30e3b36c
/*----- PROTECTED REGION ID(Galildio.cpp) ENABLED START -----*/
static
const
char
*
TagName
=
"$Name: $"
;
static
const
char
*
Id
=
"$Id: Galildio.cpp,v 1.9 2019-06-17 11:56:26 abrami Exp $"
;
//=============================================================================
//
// file : Galildio.cpp
...
...
@@ -136,8 +134,6 @@ void Galildio::init_device()
DEBUG_STREAM
<<
"Galildio::init_device() create device "
<<
device_name
<<
endl
;
/*----- PROTECTED REGION ID(Galildio::init_device_before) ENABLED START -----*/
std
::
cout
<<
Id
<<
" | "
<<
TagName
<<
std
::
endl
;
// Initialization before get_device_property() call
/*----- PROTECTED REGION END -----*/
// Galildio::init_device_before
...
...
src/GalildioClass.cpp
View file @
30e3b36c
...
...
@@ -78,6 +78,16 @@ GalildioClass::GalildioClass(string &s):Tango::DeviceClass(s)
write_class_property
();
/*----- PROTECTED REGION ID(GalildioClass::constructor) ENABLED START -----*/
// version tag
string
Release
(
RELEASE
);
set_cvs_tag
(
Release
);
string
Repository
(
REPO
);
set_cvs_location
(
Repository
);
doc_url
=
REPO
;
/*----- PROTECTED REGION END -----*/
// GalildioClass::constructor
...
...
src/ReadBit.cpp
View file @
30e3b36c
...
...
@@ -16,6 +16,9 @@ bool Galildio::readBit(short bit, bool rw){
data
=
CORBA
::
string_dup
(
ss
.
str
().
c_str
());
Din
<<
data
;
CORBA
::
string_free
(
data
);
try
{
Dout
=
dp
->
command_inout
(
"WriteRead"
,
Din
);
}
catch
(
Tango
::
DevFailed
&
e
)
{
...
...
src/SetBit.cpp
View file @
30e3b36c
...
...
@@ -16,6 +16,9 @@ void Galildio::setBit(short bit, bool val){
data
=
CORBA
::
string_dup
(
ss
.
str
().
c_str
());
Din
<<
data
;
CORBA
::
string_free
(
data
);
try
{
Dout
=
dp
->
command_inout
(
"WriteRead"
,
Din
);
}
catch
(
Tango
::
DevFailed
&
e
)
{
...
...
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