Commit 30e3b36c authored by Alessandro Abrami's avatar Alessandro Abrami
Browse files

09/06/2020:

	Modificati Tag CVS
	Risolto memory leak
parent f0d1a83f
/*----- 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
......
......@@ -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
......
......@@ -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) {
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment