Cerata
A library to generate structural hardware designs
|
Class to hold and modify a VHDL template file. More...
#include <template.h>
Public Member Functions | |
Template (std::istream *str) | |
Construct a Template from an input stream. | |
void | Analyze () |
Mark the locations of all replaceable template strings. | |
void | Replace (const std::string &str, int with) |
Replace a template replacement string with some number. | |
void | Replace (const std::string &str, const std::string &with) |
Replace a template replacement string with some other string. | |
std::string | ToString () |
Return the file as a string. | |
Static Public Member Functions | |
static Template | FromString (const std::string &str) |
Construct a Template from an input string. | |
static Template | FromFile (const std::string &filename) |
Construct a Template from a file. | |
Class to hold and modify a VHDL template file.
Definition at line 36 of file template.h.