Typestate phase for static topology construction.
More...
#include <fstWrapper.hpp>
|
| | HierarchyBuilder (std::string_view fileName, int use_compressed_hier=1) |
| | ~HierarchyBuilder ()=default |
| | HierarchyBuilder (const HierarchyBuilder &)=delete |
| HierarchyBuilder & | operator= (const HierarchyBuilder &)=delete |
| | HierarchyBuilder (HierarchyBuilder &&) noexcept=default |
| HierarchyBuilder & | operator= (HierarchyBuilder &&) noexcept=default |
| void | setTimeScale (int exponent) |
| void | setTimeZero (int64_t tim) |
| void | setPackType (fstWriterPackType typ) |
| void | setFileType (fstFileType typ) |
| void | setDate (std::string_view date) |
| void | setVersion (std::string_view version) |
| void | setScope (fstScopeType scope_type, std::string_view scope_name, std::string_view scope_comp="") |
| | Pushes a new scope onto the writer hierarchy stack.
|
| void | upScope () |
| | Pops one hierarchy level. Must match a preceding setScope().
|
| fstHandle | createVar (fstVarType var_type, fstVarDir var_dir, uint32_t len, std::string_view name, fstHandle aliasHandle=0) |
| | Creates a waveform variable.
|
| fstEnumHandle | createEnumTable (std::string_view name, unsigned int min_valbits, const std::vector< std::pair< const std::string, const std::string > > &values) |
| | Creates a symbolic enum mapping table.
|
| void | emitEnumTableRef (fstEnumHandle handle) |
| | Associates a previously created enum table with subsequent variables.
|
| DataWriter | finish () && |
| | Final typestate transition.
|
Typestate phase for static topology construction.
Responsibilities:
- configure file metadata
- create scopes
- create variables
- configure enums
Once hierarchy definition is complete, ownership transitions into DataWriter through finish().
Definition at line 520 of file fstWrapper.hpp.
◆ HierarchyBuilder() [1/3]
| HierarchyBuilder |
( |
std::string_view | fileName, |
|
|
int | use_compressed_hier = 1 ) |
|
explicit |
◆ ~HierarchyBuilder()
◆ HierarchyBuilder() [2/3]
| HierarchyBuilder |
( |
const HierarchyBuilder & | | ) |
|
|
delete |
◆ HierarchyBuilder() [3/3]
| HierarchyBuilder |
( |
HierarchyBuilder && | | ) |
|
|
defaultnoexcept |
◆ createEnumTable()
| fstEnumHandle createEnumTable |
( |
std::string_view | name, |
|
|
unsigned int | min_valbits, |
|
|
const std::vector< std::pair< const std::string, const std::string > > & | values ) |
Creates a symbolic enum mapping table.
Example:
"IDLE" -> "00" "RUN" -> "01"
Definition at line 155 of file fstWrapper.cpp.
◆ createVar()
| fstHandle createVar |
( |
fstVarType | var_type, |
|
|
fstVarDir | var_dir, |
|
|
uint32_t | len, |
|
|
std::string_view | name, |
|
|
fstHandle | aliasHandle = 0 ) |
Creates a waveform variable.
aliasHandle enables signal aliasing where multiple names reference the same underlying waveform storage.
Definition at line 144 of file fstWrapper.cpp.
◆ emitEnumTableRef()
| void emitEnumTableRef |
( |
fstEnumHandle | handle | ) |
|
|
inline |
Associates a previously created enum table with subsequent variables.
Definition at line 616 of file fstWrapper.hpp.
◆ finish()
Final typestate transition.
Consumes the hierarchy builder and returns a waveform data writer.
The && qualifier prevents calling finish() on lvalues accidentally. Users must explicitly acknowledge consumption via std::move().
Definition at line 180 of file fstWrapper.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setDate()
| void setDate |
( |
std::string_view | date | ) |
|
|
inline |
◆ setFileType()
| void setFileType |
( |
fstFileType | typ | ) |
|
|
inline |
◆ setPackType()
| void setPackType |
( |
fstWriterPackType | typ | ) |
|
|
inline |
◆ setScope()
| void setScope |
( |
fstScopeType | scope_type, |
|
|
std::string_view | scope_name, |
|
|
std::string_view | scope_comp = "" ) |
Pushes a new scope onto the writer hierarchy stack.
Definition at line 135 of file fstWrapper.cpp.
◆ setTimeScale()
| void setTimeScale |
( |
int | exponent | ) |
|
|
inline |
◆ setTimeZero()
| void setTimeZero |
( |
int64_t | tim | ) |
|
|
inline |
◆ setVersion()
| void setVersion |
( |
std::string_view | version | ) |
|
|
inline |
◆ upScope()
◆ context
◆ fn
The documentation for this class was generated from the following files: