NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
config_reader::WatchFiles Class Reference

#include <watch_files.h>

Classes

class  Watch
 

Public Member Functions

 WatchFiles ()
 
 ~WatchFiles ()
 
bool init ()
 
void reset ()
 
bool isInited ()
 
bool addWatch (Watch *w, const char *filename)
 
bool removeWatch (Watch *w)
 
uint32_t calcEventMask (Watch *w)
 
int getEvents ()
 
int getNumEvents ()
 
void clearEvents ()
 

Protected Attributes

std::vector< inotify_event > events
 
int inotify_fd
 
int num_watches
 

Static Protected Attributes

static const uint32_t ModEvents = IN_CLOSE_WRITE|IN_DELETE_SELF
 

Constructor & Destructor Documentation

◆ WatchFiles()

config_reader::WatchFiles::WatchFiles ( )
inline

◆ ~WatchFiles()

config_reader::WatchFiles::~WatchFiles ( )
inline

Member Function Documentation

◆ addWatch()

bool config_reader::WatchFiles::addWatch ( Watch w,
const char *  filename 
)

◆ calcEventMask()

uint32_t config_reader::WatchFiles::calcEventMask ( Watch w)

◆ clearEvents()

void config_reader::WatchFiles::clearEvents ( )
inline

◆ getEvents()

int config_reader::WatchFiles::getEvents ( )

◆ getNumEvents()

int config_reader::WatchFiles::getNumEvents ( )
inline

◆ init()

bool config_reader::WatchFiles::init ( )

◆ isInited()

bool config_reader::WatchFiles::isInited ( )
inline

◆ removeWatch()

bool config_reader::WatchFiles::removeWatch ( Watch w)

◆ reset()

void config_reader::WatchFiles::reset ( )

Member Data Documentation

◆ events

std::vector<inotify_event> config_reader::WatchFiles::events
protected

◆ inotify_fd

int config_reader::WatchFiles::inotify_fd
protected

◆ ModEvents

const uint32_t config_reader::WatchFiles::ModEvents = IN_CLOSE_WRITE|IN_DELETE_SELF
staticprotected

◆ num_watches

int config_reader::WatchFiles::num_watches
protected

The documentation for this class was generated from the following files: