MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / AddOutTarget

Method AddOutTarget

src/core/debug.cpp:227–239  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// AddOutTarget -- Attempts to add a new target for trace/debug output. FAILS ONLY IF caller attempts to SET OUT_FILE via this function. //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

225// FAILS ONLY IF caller attempts to SET OUT_FILE via this function.
226///////////////////////////////////////////////////////////////////////////////
227bool cDebug::AddOutTarget(OutTarget target)
228{
229 if (target == OUT_STDOUT)
230 mOutMask |= OUT_STDOUT;
231 if (target == OUT_TRACE)
232 mOutMask |= OUT_TRACE;
233 if (target == OUT_FILE)
234 {
235 mOutMask |= OUT_FILE;
236 return false;
237 }
238 return true;
239}
240
241///////////////////////////////////////////////////////////////////////////////
242// RemoveOutTarget -- Masks out from mOutMask the value passed.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected