European
Southern
Observatory

ESO — Reaching New Heights in Astronomy

Countries taking part in the ESO

VLT Software Documentation

mswFOCUS Class Reference

See man page mswFOCUS(4)
More...

#include <mswFOCUS.h>

List of all members.

Public Member Functions

 mswFOCUS ()
 mswFOCUS (const dbSYMADDRESS dbPoint)
 ~mswFOCUS ()
vltINT32 CurrentFocus ()
const char * CurrentFocusName ()

Protected Member Functions

mswFOCUSCurrentFocus (vltINT32 newFocus)

Private Attributes

eccsDB_INT32 * currentFocusDb

Friends

class mswCHANGE_FOCUS

Detailed Description

See man page mswFOCUS(4)
Manpage of mswFOCUS

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

Definition at line 25 of file mswFOCUS.h.


Constructor & Destructor Documentation

mswFOCUS::mswFOCUS (  ) 
mswFOCUS::mswFOCUS ( const dbSYMADDRESS  dbPoint  ) 

Definition at line 175 of file mswFOCUS.C.

References currentFocusDb, and mswDB_CURRENT_FOCUS_ATTR.

mswFOCUS::~mswFOCUS (  ) 

Definition at line 185 of file mswFOCUS.C.

References currentFocusDb.


Member Function Documentation

mswFOCUS & mswFOCUS::CurrentFocus ( vltINT32  newFocus  )  [protected]

Definition at line 219 of file mswFOCUS.C.

References currentFocusDb, mswERR_DB_WRITE, and mswMOD.

vltINT32 mswFOCUS::CurrentFocus (  ) 
const char * mswFOCUS::CurrentFocusName (  ) 

Friends And Related Function Documentation

friend class mswCHANGE_FOCUS [friend]

Definition at line 40 of file mswFOCUS.h.


Member Data Documentation

eccsDB_INT32* mswFOCUS::currentFocusDb [private]

Definition at line 39 of file mswFOCUS.h.

Referenced by CurrentFocus(), mswFOCUS(), tcsTCS_RCSID(), and ~mswFOCUS().


The documentation for this class was generated from the following files:
Generated on Mon Apr 23 10:12:39 2012 for INTROOT API by doxygen 1.6.3