RTC Toolkit  1.0.0
Classes | Functions
rtctk::standaloneTools Namespace Reference

Classes

class  ShmPub
 ShmPub parent class. More...
 
class  ShmSubscriber
 Implements basic features for a simple shared memory subscriber program. More...
 
class  ShmSubscriberBase
 Base class to implement all non-template methods that can be pre-compiled for the ShmSubscriber. More...
 

Functions

void SignalHandler (int signal)
 handles basic singals to allow simple exiting of ShmPub More...
 
template<class T >
std::vector< T > read_col_from_fits (fitsfile *fptr, char *name, long nrows, bool output=false)
 helper function for reading columns of fits table More...
 

Function Documentation

◆ read_col_from_fits()

template<class T >
std::vector<T> rtctk::standaloneTools::read_col_from_fits ( fitsfile *  fptr,
char *  name,
long  nrows,
bool  output = false 
)

helper function for reading columns of fits table

will return the data from the specified column of bin table

Template Parameters
datatype i.e float, int etc.
Parameters
fptrpointer to fitsfile
namename of column wanted
nrowsnumber of rows in column.
outputoutput data of column if true defaults to false
Returns
std::vector<T> of data read from file
Error::Timeout if writer did not signal us before timeout time elapsed and element iterator become valid.

◆ SignalHandler()

void rtctk::standaloneTools::SignalHandler ( int  signal)

handles basic singals to allow simple exiting of ShmPub

Parameters
signalsignal being recieved
Returns
void