$darkmode
#include <iostream>#include <memory>#include <string>#include <vector>#include <fable/environment.hpp>Go to the source code of this file.
Classes | |
| struct | cloe::StackOptions |
Functions | |
| Stack | cloe::new_stack (const StackOptions &opt) |
| Stack | cloe::new_stack (const StackOptions &opt, const std::string &filepath) |
| Stack | cloe::new_stack (const StackOptions &opt, const std::vector< std::string > &filepaths) |
| void | cloe::merge_stack (const StackOptions &opt, Stack &s, const std::string &filepath) |
This file provides methods for creating Stack objects.
These can be configured through the environment and the CLI by way of StackOptions. Only one Stack object is created in an execution, all further stackfiles are merged into the first Stack object. While this is the current behavior, it is not guaranteed; Stack is not a singleton.
| void cloe::merge_stack | ( | const StackOptions & | opt, |
| Stack & | s, | ||
| const std::string & | filepath | ||
| ) |
Merge the provided stackfile into the existing Stack, respecting StackOptions.
| Stack cloe::new_stack | ( | const StackOptions & | opt | ) |
Create a new empty default Stack from StackOptions.
| Stack cloe::new_stack | ( | const StackOptions & | opt, |
| const std::string & | filepath | ||
| ) |
Create a new Stack from the stackfile provided, respecting StackOptions.
| Stack cloe::new_stack | ( | const StackOptions & | opt, |
| const std::vector< std::string > & | filepaths | ||
| ) |
Create a new Stack by merging all stackfiles provided, respecting StackOptions.