#include <init.h>
Public Member Functions | |
| bool | needInit (void) |
| void | ignoreProfile (void) |
| void | doInit (void) |
| SaXInit (QList< char >) | |
| SaXInit (void) | |
SaXInit is used to create the SaX cache files. SaX will provide a configuration suggestion which is the basis for all actions. To be sure not to make use of an outdated cache every program using libsax should create this cache first. The following example illustrates that more detailed:
#include <sax/sax.h> SaXInit init; if (init.needInit()) { printf ("initialize cache...\n"); //init.ignoreProfile(); init.doInit(); }
Definition at line 82 of file init.h.
| SaX::SaXInit::SaXInit | ( | QList< char > | opt | ) |
| SaX::SaXInit::SaXInit | ( | void | ) |
| bool SaX::SaXInit::needInit | ( | void | ) | [virtual] |
check if the cache is up to date. This member function will check if the cache file exists and it will check if there is hardware which has been changed
Implements SaX::SaXInitIF.
Definition at line 58 of file init.cpp.
References SaX::SaXException::setLock(), and SaX::SaXException::unsetLock().
| void SaX::SaXInit::ignoreProfile | ( | void | ) | [virtual] |
ignore any automatically applied profiles during initializing this will prevent any multihead cards to become configured as multihead card
Implements SaX::SaXInitIF.
| void SaX::SaXInit::doInit | ( | void | ) | [virtual] |
start the init.pl SaX2 startup sequence to create the cache which is the base for all further actions
Implements SaX::SaXInitIF.
Definition at line 91 of file init.cpp.
References SaX::SaXException::errorString(), SaX::SaXException::excInvalidArgument(), SaX::SaXException::excPermissionDenied(), SaX::SaXException::excProcessFailed(), and SaX::SaXException::havePrivileges().
1.5.3