Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alarm-handler
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
ds
alarm-handler
Merge requests
!4
Resolve "Update for cppTango 9.5.x"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Update for cppTango 9.5.x"
2-update-for-cpptango-9-5-x
into
master
Overview
6
Commits
5
Pipelines
10
Changes
24
Merged
Thomas Juerges
requested to merge
2-update-for-cpptango-9-5-x
into
master
11 months ago
Overview
6
Commits
5
Pipelines
10
Changes
4
Expand
Closes
#2 (closed)
0
0
Merge request reports
Compare
version 4
version 8
82edfd22
9 months ago
version 7
c883cfea
9 months ago
version 6
3fe102d1
9 months ago
version 5
3ca4dad9
10 months ago
version 4
50f1d2f6
10 months ago
version 3
27ff8f3a
11 months ago
version 2
6c83357a
11 months ago
version 1
9f25a534
11 months ago
master (base)
and
version 5
latest version
6f5b41d6
5 commits,
9 months ago
version 8
82edfd22
4 commits,
9 months ago
version 7
c883cfea
3 commits,
9 months ago
version 6
3fe102d1
3 commits,
9 months ago
version 5
3ca4dad9
2 commits,
10 months ago
version 4
50f1d2f6
1 commit,
10 months ago
version 3
27ff8f3a
1 commit,
11 months ago
version 2
6c83357a
1 commit,
11 months ago
version 1
9f25a534
1 commit,
11 months ago
Show latest version
4 files
+
14
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
src/AlarmHandler.h
+
14
−
6
Options
@@ -33,7 +33,7 @@
#ifndef AlarmHandler_H
#define AlarmHandler_H
#include
<tango.h>
#include
<tango
/tango
.h>
#include
<boost/version.hpp>
#if BOOST_VERSION >= 103600
@@ -61,7 +61,15 @@ class update_thread;
# define ELAPSED(before, after) \
1000.0*(after.tv_sec-before.tv_sec) + \
((double)after.tv_usec-before.tv_usec) / 1000
#ifndef TANGO_LOG
#define TANGO_LOG cout
#endif
#ifndef TANGO_LOG_INFO
#define TANGO_LOG_INFO cout2
#endif
#ifndef TANGO_LOG_DEBUG
#define TANGO_LOG_DEBUG cout4
#endif
/*----- PROTECTED REGION END -----*/
// AlarmHandler.h
@@ -585,13 +593,13 @@ private:
void init_alarms(map< string,vector<string> > &alarm_events);
#endif
void
add_alarm
(
alarm_t
&
a
,
bool
starting
=
false
);
void
add_event
(
alarm_t
&
a
,
vector
<
string
>
&
evn
)
throw
(
string
&
)
;
void
add_event
(
alarm_t
&
a
,
vector
<
string
>
&
evn
);
#if 0
void subscribe_event(alarm_t& a, EventCallBack& ecb, vector<string> &evn)
throw(string&)
;
void subscribe_event(alarm_t& a, EventCallBack& ecb, vector<string> &evn);
#endif
// void do_alarm(bei_t& e); //gcc 4 problem??
bool
remove_alarm
(
string
&
s
)
throw
(
string
&
)
;
//void add_to_database(alarm_t& a)
throw(string&)
;
bool
remove_alarm
(
string
&
s
);
//void add_to_database(alarm_t& a);
void
set_internal_alarm
(
string
name
,
Tango
::
TimeVal
t
,
string
msg
,
unsigned
int
count
=
1
);
void
load_alarm
(
string
alarm_string
,
alarm_t
&
alm
,
vector
<
string
>
&
evn
);