Belle II Software  release-08-01-10
RFNodeManager Class Reference
Inheritance diagram for RFNodeManager:
Collaboration diagram for RFNodeManager:

Public Member Functions

 RFNodeManager (string &nodename)
 
int fork (char *script, int nargs, char **args)
 
RfShm_CellGetCell (int id)
 
void * ptr (void)
 
int shmid (void)
 
bool IsCreated (void)
 
void lock (void)
 
void unlock (void)
 
bool isLocked (void)
 
void AllocMem (char *format)
 
RfNodeInfoGetNodeInfo ()
 
char * getconf (const char *key1, const char *key2=NULL, const char *key3=NULL)
 
int getconfi (const char *key1, const char *key2=NULL, const char *key3=NULL)
 

Static Public Member Functions

static void signal_handler (int num)
 
static std::string getTmpFileName (std::string user, std::string name)
 
static bool getIdFromTmpFileName (std::string filename, int &shmid, int &semid)
 
static NSMcontextGetContext ()
 

Static Private Member Functions

static void m_Configure (NSMmsg *, NSMcontext *)
 
static void m_UnConfigure (NSMmsg *, NSMcontext *)
 
static void m_Start (NSMmsg *, NSMcontext *)
 
static void m_Stop (NSMmsg *, NSMcontext *)
 
static void m_Pause (NSMmsg *, NSMcontext *)
 
static void m_Resume (NSMmsg *, NSMcontext *)
 
static void m_Restart (NSMmsg *, NSMcontext *)
 
static void m_Status (NSMmsg *, NSMcontext *)
 
static void m_OK (NSMmsg *, NSMcontext *)
 
static void m_ERROR (NSMmsg *, NSMcontext *)
 

Private Attributes

int piperec [2]
 
int pipesend [2]
 
bool m_new {false}
 True if we created the ring buffer ourselves (and need to clean it).
 
key_t m_shmkey
 SHM key, see shmget(2).
 
key_t m_semkey
 Semaphore key.
 
int m_shmid {-1}
 shared memory id
 
int m_semid {-1}
 semaphore id
 
void * m_shmadr {nullptr}
 
std::string m_nodename
 
std::string m_formatfile
 
RfNodeInfom_info
 
FILE * m_fd
 

Static Private Attributes

static NSMcontextg_context = 0
 

Detailed Description

Definition at line 18 of file RFNodeManager.h.


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