Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SingleShotAO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango devices
InputOutput
ADLINK
SingleShotAO
Commits
1b9bc54f
Commit
1b9bc54f
authored
5 months ago
by
Alexandre MALFREYT
Browse files
Options
Downloads
Patches
Plain Diff
cleanup: add info attr & replace log attr (using yat4tango::Logging)
parent
79af4787
No related branches found
No related tags found
1 merge request
!1
Cleanup: clean code (DODD)
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/SingleShotAO.cpp
+14
-3
14 additions, 3 deletions
src/SingleShotAO.cpp
src/SingleShotAO.h
+3
-0
3 additions, 0 deletions
src/SingleShotAO.h
src/SingleShotAOManager.h
+0
-1
0 additions, 1 deletion
src/SingleShotAOManager.h
with
17 additions
and
4 deletions
src/SingleShotAO.cpp
+
14
−
3
View file @
1b9bc54f
...
...
@@ -70,6 +70,8 @@ static const char *RcsId = "$Id: DevServ.cpp 13293 2009-04-07 10:53:56Z pascal_v
#include
<tango.h>
#include
<yat4tango/Logging.h>
#include
<yat4tango/DeviceInfo.h>
#include
<SingleShotAO.h>
#include
<SingleShotAOClass.h>
#include
"SingleShotAOTypesAndConsts.h"
...
...
@@ -164,7 +166,8 @@ void SingleShotAO::delete_device()
}
//- remove the inner appender
yat4tango
::
InnerAppender
::
release
(
this
);
yat4tango
::
Logging
::
release
(
this
);
yat4tango
::
DeviceInfo
::
release
(
this
);
}
...
...
@@ -180,7 +183,13 @@ void SingleShotAO::init_device()
//- initialize the inner appender (first thing to do)
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
)
{
...
...
@@ -190,6 +199,8 @@ void SingleShotAO::init_device()
return
;
}
INFO_STREAM
<<
"Initializing device"
;
//- trace/profile this method
yat4tango
::
TraceHelper
t
(
"SingleShotAO::init_device"
,
this
);
...
...
This diff is collapsed.
Click to expand it.
src/SingleShotAO.h
+
3
−
0
View file @
1b9bc54f
...
...
@@ -48,6 +48,9 @@
#include
<tango.h>
//using namespace Tango;
#include
<yat4tango/Logging.h>
#include
<yat4tango/DeviceInfo.h>
#include
"SingleShotAOManager.h"
/**
...
...
This diff is collapsed.
Click to expand it.
src/SingleShotAOManager.h
+
0
−
1
View file @
1b9bc54f
...
...
@@ -19,7 +19,6 @@
#include
"SingleShotAOTypesAndConsts.h"
#include
<asl/SingleShotAO.h>
/*Use YAT library*/
#include
<yat4tango/InnerAppender.h>
#include
<yat/memory/DataBuffer.h>
#include
<yat4tango/PropertyHelper.h>
#include
<map>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment