API
 
Loading...
Searching...
No Matches
libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test Struct Reference

#include <MagAOXApp_test.hpp>

Inheritance diagram for libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test:
Inheritance graph
Collaboration diagram for libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test:
Collaboration graph

Public Member Functions

 MagAOXApp_test (bool gitmod=false)
 
void addUnusedConfig ()
 
void setup (int argc, char **argv)
 
virtual int appStartup ()
 
virtual int appLogic ()
 
virtual int appShutdown ()
 
std::string configPathGlobal ()
 
std::string configPathUser ()
 
std::string configPathLocal ()
 
std::string & invokedName ()
 
bool & doHelp ()
 
bool configOnly ()
 
void setPowerMgtEnabled (bool pme)
 
void setConfigName (const std::string &cn)
 
void setConfigBase (const std::string &cb)
 
void setAlert ()
 
void doFSMClearAlert ()
 
std::string powerDevice ()
 
std::string powerChannel ()
 
std::string powerElement ()
 
std::string powerTargetElement ()
 
int powerOnWait ()
 
int onPowerOff ()
 
int whilePowerOff ()
 
bool powerOnWaitElapsed ()
 
int powerState ()
 
void configurePowerManagement (const std::string &device, const std::string &channel)
 
void configurePowerOnWait (unsigned long powerOnWait, int powerOnCounter, int loopPause)
 
int setPowerState (const std::string &state, const std::string target)
 
int setSigTermHandler ()
 
void _handlerSigTerm (int signum, siginfo_t *siginf, void *ucont)
 
int setEuidReal ()
 
int setEuidReal (int euidr, bool set=true)
 
int setEuidCalled ()
 
int setEuidCalled (int euidc)
 
int lockPID ()
 
int unlockPID ()
 

Public Attributes

bool appStartupFail {false}
 
bool appLogicFail {false}
 
bool appShutdownFail {false}
 
int called_back { 0 }
 

Detailed Description

Definition at line 23 of file MagAOXApp_test.hpp.

Constructor & Destructor Documentation

◆ MagAOXApp_test()

libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::MagAOXApp_test ( bool  gitmod = false)
inline

Definition at line 25 of file MagAOXApp_test.hpp.

Member Function Documentation

◆ _handlerSigTerm()

void libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::_handlerSigTerm ( int  signum,
siginfo_t *  siginf,
void *  ucont 
)
inline

Definition at line 218 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ addUnusedConfig()

void libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::addUnusedConfig ( )
inline

Definition at line 33 of file MagAOXApp_test.hpp.

◆ appLogic()

virtual int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::appLogic ( )
inlinevirtual

Definition at line 53 of file MagAOXApp_test.hpp.

◆ appShutdown()

virtual int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::appShutdown ( )
inlinevirtual

Definition at line 62 of file MagAOXApp_test.hpp.

◆ appStartup()

virtual int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::appStartup ( )
inlinevirtual

Definition at line 44 of file MagAOXApp_test.hpp.

◆ configOnly()

bool libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::configOnly ( )
inline

Definition at line 97 of file MagAOXApp_test.hpp.

◆ configPathGlobal()

std::string libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::configPathGlobal ( )
inline

Definition at line 72 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ configPathLocal()

std::string libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::configPathLocal ( )
inline

Definition at line 82 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ configPathUser()

std::string libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::configPathUser ( )
inline

Definition at line 77 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ configurePowerManagement()

void libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::configurePowerManagement ( const std::string &  device,
const std::string &  channel 
)
inline

Definition at line 182 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ configurePowerOnWait()

void libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::configurePowerOnWait ( unsigned long  powerOnWait,
int  powerOnCounter,
int  loopPause 
)
inline

Definition at line 192 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ doFSMClearAlert()

void libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::doFSMClearAlert ( )
inline

Definition at line 126 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ doHelp()

bool & libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::doHelp ( )
inline

Definition at line 92 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ invokedName()

std::string & libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::invokedName ( )
inline

◆ lockPID()

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::lockPID ( )
inline

Definition at line 251 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ onPowerOff()

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::onPowerOff ( )
inline

Definition at line 162 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ powerChannel()

std::string libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::powerChannel ( )
inline

Definition at line 142 of file MagAOXApp_test.hpp.

◆ powerDevice()

std::string libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::powerDevice ( )
inline

Definition at line 137 of file MagAOXApp_test.hpp.

◆ powerElement()

std::string libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::powerElement ( )
inline

Definition at line 147 of file MagAOXApp_test.hpp.

◆ powerOnWait()

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::powerOnWait ( )
inline

Definition at line 157 of file MagAOXApp_test.hpp.

◆ powerOnWaitElapsed()

bool libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::powerOnWaitElapsed ( )
inline

Definition at line 172 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ powerState()

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::powerState ( )
inline

Definition at line 177 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ powerTargetElement()

std::string libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::powerTargetElement ( )
inline

Definition at line 152 of file MagAOXApp_test.hpp.

◆ setAlert()

void libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::setAlert ( )
inline

Definition at line 121 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ setConfigBase()

void libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::setConfigBase ( const std::string &  cb)
inline

Definition at line 114 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ setConfigName()

void libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::setConfigName ( const std::string &  cn)
inline

◆ setEuidCalled() [1/2]

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::setEuidCalled ( )
inline

Definition at line 240 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ setEuidCalled() [2/2]

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::setEuidCalled ( int  euidc)
inline

Definition at line 245 of file MagAOXApp_test.hpp.

◆ setEuidReal() [1/2]

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::setEuidReal ( )
inline

Definition at line 223 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ setEuidReal() [2/2]

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::setEuidReal ( int  euidr,
bool  set = true 
)
inline

Definition at line 228 of file MagAOXApp_test.hpp.

◆ setPowerMgtEnabled()

void libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::setPowerMgtEnabled ( bool  pme)
inline

◆ setPowerState()

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::setPowerState ( const std::string &  state,
const std::string  target 
)
inline

Definition at line 199 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ setSigTermHandler()

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::setSigTermHandler ( )
inline

Definition at line 213 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ setup()

void libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::setup ( int  argc,
char **  argv 
)
inline

Definition at line 39 of file MagAOXApp_test.hpp.

◆ unlockPID()

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::unlockPID ( )
inline

Definition at line 256 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

◆ whilePowerOff()

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::whilePowerOff ( )
inline

Definition at line 167 of file MagAOXApp_test.hpp.

Referenced by libXWCTest::appTest::MagAOXAppTest::TEST_CASE().

Member Data Documentation

◆ appLogicFail

bool libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::appLogicFail {false}

Definition at line 30 of file MagAOXApp_test.hpp.

◆ appShutdownFail

bool libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::appShutdownFail {false}

Definition at line 31 of file MagAOXApp_test.hpp.

◆ appStartupFail

bool libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::appStartupFail {false}

Definition at line 29 of file MagAOXApp_test.hpp.

◆ called_back

int libXWCTest::appTest::MagAOXAppTest::MagAOXApp_test::called_back { 0 }

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