PandA-2024.02
|
STD include. More...
#include <c_initialization_parser_functor.hpp>
Public Member Functions | |
CInitializationParserFunctor () | |
Constructor. More... | |
virtual | ~CInitializationParserFunctor () |
Destructor. More... | |
virtual void | CheckEnd ()=0 |
Check that all the necessary information was present in the initialization string. More... | |
virtual void | GoDown ()=0 |
Start the initialization of a new aggregated data structure. More... | |
virtual void | GoNext ()=0 |
Consume an element of an aggregated data structure. More... | |
virtual void | GoUp ()=0 |
Ends the initialization of the current aggregated data structure. More... | |
virtual void | Process (const std::string &content)=0 |
Process an element. More... | |
virtual void | ActivateFileInit (const std::string &filename)=0 |
In case the test_v has a size over a threshold write the tests on a file. More... | |
virtual void | FinalizeFileInit ()=0 |
Copy and close the file. More... | |
Protected Attributes | |
int | debug_level |
The debug level. More... | |
bool | write_in_a_file |
the data will be written in a data copied by the caller More... | |
std::string | file_variable |
variable used to write in a variable More... | |
STD include.
utility include Abstract functor used during parsing of C initialization string
Definition at line 52 of file c_initialization_parser_functor.hpp.
CInitializationParserFunctor::CInitializationParserFunctor | ( | ) |
Constructor.
Header include.
Definition at line 44 of file c_initialization_parser_functor.cpp.
References ~CInitializationParserFunctor().
|
virtualdefault |
Destructor.
Referenced by CInitializationParserFunctor().
|
pure virtual |
In case the test_v has a size over a threshold write the tests on a file.
filename | is the file name to use |
Implemented in ComputeReservedMemory, MemoryInitializationWriter, and MemoryInitializationCWriter.
|
pure virtual |
Check that all the necessary information was present in the initialization string.
Implemented in MemoryInitializationWriterBase, and ComputeReservedMemory.
|
pure virtual |
Copy and close the file.
Implemented in ComputeReservedMemory, MemoryInitializationWriter, and MemoryInitializationCWriter.
|
pure virtual |
Start the initialization of a new aggregated data structure.
Implemented in MemoryInitializationWriterBase, and ComputeReservedMemory.
|
pure virtual |
Consume an element of an aggregated data structure.
Implemented in MemoryInitializationWriterBase, and ComputeReservedMemory.
|
pure virtual |
Ends the initialization of the current aggregated data structure.
Implemented in MemoryInitializationWriterBase, and ComputeReservedMemory.
|
pure virtual |
Process an element.
content | is the string associated with the string |
Implemented in ComputeReservedMemory, MemoryInitializationWriter, and MemoryInitializationCWriter.
|
protected |
The debug level.
Definition at line 56 of file c_initialization_parser_functor.hpp.
Referenced by MemoryInitializationWriterBase::GoDown(), MemoryInitializationWriterBase::GoNext(), MemoryInitializationWriterBase::GoUp(), MemoryInitializationCWriter::MemoryInitializationCWriter(), MemoryInitializationWriter::MemoryInitializationWriter(), MemoryInitializationCWriter::Process(), and MemoryInitializationWriter::Process().
|
protected |
variable used to write in a variable
Definition at line 62 of file c_initialization_parser_functor.hpp.
Referenced by MemoryInitializationCWriter::ActivateFileInit(), and MemoryInitializationCWriter::FinalizeFileInit().
|
protected |
the data will be written in a data copied by the caller
Definition at line 59 of file c_initialization_parser_functor.hpp.
Referenced by MemoryInitializationCWriter::ActivateFileInit(), and MemoryInitializationCWriter::Process().