RTC Toolkit  0.1.0-alpha
Classes | Functions
rtctk::standaloneTools Namespace Reference

Classes

class  ShmPub
 
class  ShmSubscriber
 Implements basic features for a simple shared memory subscriber program. More...
 
class  ShmSubscriberBase
 
struct  TestTopic
 

Functions

void SignalHandler (int signal)
 
template<class T >
std::vector< T > read_col_from_fits (fitsfile *fptr, char *name, long nrows, bool output=false)
 
 TEST (TestShmSubscriber, TrivialConstruction)
 

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

◆ TEST()

rtctk::standaloneTools::TEST ( TestShmSubscriber  ,
TrivialConstruction   
)