mswFOCUS
Section: Devices and Network Interfaces (4)
Updated: 2012-04-23 10:09
Index
Return to man pages list
NAME
mswFOCUS - Control telescope's focus change.
SYNOPSIS
#include "mswFOCUS.h"
class mswFOCUS : public eccsERROR_CLASS
{
public:
mswFOCUS();
mswFOCUS(const dbSYMADDRESS dbPoint);
~mswFOCUS();
vltINT32 CurrentFocus();
const char *CurrentFocusName();
protected:
mswFOCUS &CurrentFocus(vltINT32 newFocus);
private:
eccsDB_INT32 *currentFocus;
friend class mswCHANGE_FOCUS;
};
PARENT CLASS
evhDB_TASK
DESCRIPTION
Base class to access current focus data.
It requires a database support point where the current focus station
is stored and can be assessed.
Typically this will be focus point in the standard TCS mode switching
database branch, i.e. ":Appl_data:TCS:msw:foc".
PUBLIC METHODS
mswFOCUS();
mswFOCUS(const dbSYMADDRESS dbPoint);
Two constructors are provided.
The second one receives as parameter the symbolic address of
online database support point for the object, i.e. the point
where the object can find configuration and run time values.
The first one defines the online database support point calling
the standard tcsDbRoot(4) function and appenting the
default relative path from the TCS database root point,
assuming a complete default TCS database structure.
~mswFOCUS()
Deletes all the internal structures created dynamically.
vltINT32 CurrentFocus();
const char *CurrentFocusName();
Return the current focus value or name as stored in the database.
These methods can be used by external TCS modules to pick up
the current focus.
PROTECTED METHODS
mswFOCUS &mswFOCUS::CurrentFocus(vltINT32 newFocus)
Stores in the database a new value for the current focus.
It is not publicly available, since it is meant to be used
only by the msw friend class mswCHANGE_FOCUS(4)
PRIVATE DATA MEMBERS
eccsDB_INT32 *currentFocusDb; Database access object
FRIEND CLASSES
mswCHANGE_FOCUS(4)
ON LINE DATABASE
The class will tipically point to an instance of the mswCHANGE_FOCUS
database class, but it just assumes that the given database point
contains the attribute:
ATTRIBUTE INT32 currentFocus
SEE ALSO
eccsERROR_CLASS(4) mswCHANGE_FOCUS(4)
Index
- NAME
-
- SYNOPSIS
-
- PARENT CLASS
-
- DESCRIPTION
-
- PUBLIC METHODS
-
- PROTECTED METHODS
-
- PRIVATE DATA MEMBERS
-
- FRIEND CLASSES
-
- ON LINE DATABASE
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 10:09:27 GMT, April 23, 2012