MCPcopy Create free account
hub / github.com/Icinga/icinga2 / CompileText

Method CompileText

lib/config/configcompiler.cpp:286–291  ·  view source on GitHub ↗

* Compiles a snippet of text. * * @param path A name identifying the text. * @param text The text. * @returns Configuration items. */

Source from the content-addressed store, hash-verified

284 * @returns Configuration items.
285 */
286std::unique_ptr<Expression> ConfigCompiler::CompileText(const String& path, const String& text,
287 const String& zone, const String& package)
288{
289 std::stringstream stream(text);
290 return CompileStream(path, &stream, zone, package);
291}
292
293/**
294 * Adds a directory to the list of include search dirs.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected