A single-use class to shut down the yarp library if it was initialized automatically. More...
Public Member Functions | |
~YarpAutoInit () | |
Shut down the yarp library if it was automatically initialized. More... | |
A single-use class to shut down the yarp library if it was initialized automatically.
Definition at line 66 of file Network.cpp.
|
inline |
Shut down the yarp library if it was automatically initialized.
The library is automatically initialized if NetworkBase::autoInitMinimum() is called before any of the manual ways of initializing the library (calling Network::init, creating a Network object, etc). yarp::os::ResourceFinder calls autoInitMinimum() since it needs to be sure that YARP+ACE is initialized (but a user might not expect that).
Definition at line 78 of file Network.cpp.