Skip to content
Snippets Groups Projects

[CTRLRFC-1594] Apply memorized dynamic attributes at init

3 files
+ 17
4
Compare changes
  • Side-by-side
  • Inline

Files

+ 14
3
@@ -70,6 +70,8 @@ static const char *RcsId = "$Id: DevServ.cpp 13293 2009-04-07 10:53:56Z pascal_v
@@ -70,6 +70,8 @@ static const char *RcsId = "$Id: DevServ.cpp 13293 2009-04-07 10:53:56Z pascal_v
#include <tango.h>
#include <tango.h>
 
#include <yat4tango/Logging.h>
 
#include <yat4tango/DeviceInfo.h>
#include <SingleShotAO.h>
#include <SingleShotAO.h>
#include <SingleShotAOClass.h>
#include <SingleShotAOClass.h>
#include "SingleShotAOTypesAndConsts.h"
#include "SingleShotAOTypesAndConsts.h"
@@ -164,7 +166,8 @@ void SingleShotAO::delete_device()
@@ -164,7 +166,8 @@ void SingleShotAO::delete_device()
}
}
//- remove the inner appender
//- remove the inner appender
yat4tango::InnerAppender::release(this);
yat4tango::Logging::release(this);
 
yat4tango::DeviceInfo::release(this);
}
}
@@ -180,9 +183,15 @@ void SingleShotAO::init_device()
@@ -180,9 +183,15 @@ void SingleShotAO::init_device()
//- initialize the inner appender (first thing to do)
//- initialize the inner appender (first thing to do)
try
try
{
{
yat4tango::InnerAppender::initialize(this);
INFO_STREAM << "Create the InnerAppender & FileAppender in order to manage logs." << endl;
 
yat4tango::Logging::initialize(this);
 
 
INFO_STREAM << "Create the DeviceInfo in order to manage info on versions." << endl;
 
yat4tango::DeviceInfo::initialize(this, YAT_XSTR(PROJECT_NAME), YAT_XSTR(PROJECT_VERSION));
 
// yat4tango::DeviceInfo::add_dependency(this, "Dependency Name", YAT_XSTR(dependency_name_PROJECT_VERSION));
 
// TODO: Add dependencies
}
}
catch( Tango::DevFailed& df )
catch (Tango::DevFailed &df)
{
{
ERROR_STREAM << df << std::endl;
ERROR_STREAM << df << std::endl;
m_state = Tango::FAULT;
m_state = Tango::FAULT;
@@ -190,6 +199,8 @@ void SingleShotAO::init_device()
@@ -190,6 +199,8 @@ void SingleShotAO::init_device()
return;
return;
}
}
 
INFO_STREAM << "Initializing device";
 
//- trace/profile this method
//- trace/profile this method
yat4tango::TraceHelper t("SingleShotAO::init_device", this);
yat4tango::TraceHelper t("SingleShotAO::init_device", this);
Loading