Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CornerStone130
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
BeamlineComponents
Monochromators
CornerStone130
Commits
d93e344b
Commit
d93e344b
authored
Mar 16, 2017
by
Sonia Minolli
Browse files
Options
Downloads
Patches
Plain Diff
integration in progress...
parent
4d2851d8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/HardwareInterface.h
+1
-0
1 addition, 0 deletions
src/HardwareInterface.h
src/TypesAndConsts.h
+98
-0
98 additions, 0 deletions
src/TypesAndConsts.h
with
99 additions
and
0 deletions
src/HardwareInterface.h
+
1
−
0
View file @
d93e344b
...
...
@@ -15,6 +15,7 @@
#include
<tango.h>
#include
<yat4tango/ExceptionHelper.h>
#include
<yat4tango/LogHelper.h>
#include
"TypesAndConsts.h"
namespace
CornerStone130_ns
{
...
...
This diff is collapsed.
Click to expand it.
src/TypesAndConsts.h
0 → 100644
+
98
−
0
View file @
d93e344b
//=============================================================================
// TypesAndConsts.h
//=============================================================================
// abstraction.......Basic types and Constants for CornerStone130 Device
// class.............Basic structures
// original author...S. MINOLLI - NEXEYA
//=============================================================================
#ifndef _TYPES_AND_CONSTS_H_
#define _TYPES_AND_CONSTS_H_
//=============================================================================
// DEPENDENCIES
//=============================================================================
#include
<vector>
#include
<map>
namespace
CornerStone130_ns
{
//- Shutter state
typedef
enum
{
E_CLOSED
=
0
,
E_OPENED
,
E_NONE
}
E_shutter_state_t
;
//- Grating definition
typedef
struct
GratingDef
{
//- members --------------------
std
::
string
label
;
// grating label
double
maxWaveLength
;
// max wave length in user unit
//- default constructor -----------------------
GratingDef
()
:
label
(
""
),
maxWaveLength
(
yat
::
IEEE_NAN
)
{
}
//- destructor -----------------------
~
GratingDef
()
{
}
//- copy constructor ------------------
GratingDef
(
const
GratingDef
&
src
)
{
*
this
=
src
;
}
//- operator= ------------------
const
GratingDef
&
operator
=
(
const
GratingDef
&
src
)
{
if
(
this
==
&
src
)
return
*
this
;
this
->
label
=
src
.
label
;
this
->
maxWaveLength
=
src
.
maxWaveLength
;
return
*
this
;
}
//- dump -----------------------
void
dump
()
const
{
std
::
cout
<<
"GratingDef::label........."
<<
this
->
label
<<
std
::
endl
;
std
::
cout
<<
"GratingDef::maxWaveLength........."
<<
this
->
maxWaveLength
<<
std
::
endl
;
}
}
GratingDef
;
//- List of <KEY, value> defining the filters:
//- KEY = filter id
//- value = filter label
typedef
std
::
pair
<
yat
::
uint16
,
std
::
string
>
Filters_pair_t
;
typedef
std
::
map
<
yat
::
uint16
,
std
::
string
>
Filters_t
;
typedef
Filters_t
::
iterator
Filters_it_t
;
//- List of <KEY, value> defining the gratings:
//- KEY = grating id
//- value = grating definition
typedef
std
::
pair
<
yat
::
uint16
,
GratingDef
>
Gratings_pair_t
;
typedef
std
::
map
<
yat
::
uint16
,
GratingDef
>
Gratings_t
;
typedef
Gratings_t
::
iterator
Gratings_it_t
;
}
//- namespace CornerStone130_ns
#endif //- _TYPES_AND_CONSTS_H_
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