Skip to content
Snippets Groups Projects
Commit d93e344b authored by Sonia Minolli's avatar Sonia Minolli
Browse files

integration in progress...

parent 4d2851d8
Branches
Tags
No related merge requests found
......@@ -15,6 +15,7 @@
#include <tango.h>
#include <yat4tango/ExceptionHelper.h>
#include <yat4tango/LogHelper.h>
#include "TypesAndConsts.h"
namespace CornerStone130_ns {
......
//=============================================================================
// 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_
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment