MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / Destroy

Method Destroy

cpp/src/Options.cpp:148–163  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Static method to destroy an Options object -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

146// Static method to destroy an Options object
147//-----------------------------------------------------------------------------
148bool Options::Destroy
149(
150)
151{
152 if( Manager::Get() )
153 {
154 // Cannot delete Options because Manager object still exists
155 OZW_ERROR(OZWException::OZWEXCEPTION_OPTIONS, "Cannot Delete Options Class as Manager Class is still around");
156 return false;
157 }
158
159 delete s_instance;
160 s_instance = NULL;
161
162 return true;
163}
164
165//-----------------------------------------------------------------------------
166// <Options::Options>

Callers

nothing calls this directly

Calls 1

GetFunction · 0.70

Tested by

no test coverage detected