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
1
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
Compare revisions
45145e8c6a0eaa5368e390647c2570903dd747b0 to master
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
cs/ds/alarm-handler
Select target project
No results found
master
Select Git revision
Swap
Target
francesco.tripaldi/alarm-handler
Select target project
cs/ds/alarm-handler
francesco.tripaldi/alarm-handler
2 results
45145e8c6a0eaa5368e390647c2570903dd747b0
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/testdevice/src/main.cpp
+70
-0
70 additions, 0 deletions
test/testdevice/src/main.cpp
with
70 additions
and
0 deletions
test/testdevice/src/main.cpp
0 → 100644
View file @
09ec0325
/*PROTECTED REGION ID(TestDevice::main.cpp) ENABLED START*/
//=============================================================================
//
// file : TestDevice.cpp
//
// description : C++ source for the TestDevice device server main.
// The main rule is to initialise (and create) the Tango
// system and to create the DServerClass singleton.
// The main should be the same for every Tango device server.
//
// $Author: graziano $
//
//
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#include
<tango/tango.h>
#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
int
main
(
int
argc
,
char
*
argv
[])
{
using
namespace
std
;
Tango
::
Util
*
tg
=
NULL
;
try
{
// Initialise the device server
//----------------------------------------
tg
=
Tango
::
Util
::
init
(
argc
,
argv
);
// Create the device server singleton
// which will create everything
//----------------------------------------
tg
->
server_init
(
false
);
// Run the endless loop
//----------------------------------------
TANGO_LOG
<<
"Ready to accept request"
<<
endl
;
tg
->
server_run
();
}
catch
(
bad_alloc
)
{
TANGO_LOG
<<
"Can't allocate memory to store device object !!!"
<<
endl
;
TANGO_LOG
<<
"Exiting"
<<
endl
;
}
catch
(
CORBA
::
Exception
&
e
)
{
Tango
::
Except
::
print_exception
(
e
);
TANGO_LOG
<<
"Received a CORBA_Exception"
<<
endl
;
TANGO_LOG
<<
"Exiting"
<<
endl
;
}
if
(
tg
!=
NULL
)
tg
->
server_cleanup
();
return
(
0
);
}
/*PROTECTED REGION END*/
//========================================================
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
Next