3#include <NDEVR/ApplicationResource.h>
4#include <NDEVR/InfoPipe.h>
5#include <NDEVR/Scanner.h>
24 boiler.expandEnvironmentalVars();
27 log.addMessage(
"Warning Boiler: "+
boiler +
" does not exist");
31 log.addMessage(
"Reading Boiler:");
36 log.addMessage(
" " + line);
37 line.
replace(
"[included_in_api]",
"True");
44 new_boiler.
replace(
"[library]",
file.getParentDirectory().getParentDirectory().getFolderName());
static Resource< String > username
The logged-in user's username.
Reads a boilerplate copyright/license header template and applies file-specific substitutions,...
String boiler_data
Cached template data (loaded on first use).
File boiler_file
Path to the boilerplate template file.
String boiler(const File &file, LogPtr log) const
Generates the boilerplate header text for the given file.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
@ e_file_name
The file name without extension.
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
Contains methods for easily reading objects in an ascii stream using set deliminators and line logic.
const String & currentLine() const
Returns a const reference to the current line being parsed.
virtual bool nextLine()
Advances the scanner to the next line in the stream.
The core String class for the NDEVR API.
String & replace(const StringView &sub_string, const StringView &replace_sub_string, bool ignore_case=false, uint04 start_index=0)
Replaces ALL instances of a given substring with the provided replacement.
The primary namespace for the NDEVR SDK.
@ file
The source file path associated with this object.