PandA-2024.02
Public Member Functions | Protected Attributes
CInitializationParserFunctor Class Referenceabstract

STD include. More...

#include <c_initialization_parser_functor.hpp>

Inheritance diagram for CInitializationParserFunctor:
Inheritance graph
[legend]

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...
 

Detailed Description

STD include.

utility include Abstract functor used during parsing of C initialization string

Definition at line 52 of file c_initialization_parser_functor.hpp.

Constructor & Destructor Documentation

◆ CInitializationParserFunctor()

CInitializationParserFunctor::CInitializationParserFunctor ( )

Constructor.

Header include.

Definition at line 44 of file c_initialization_parser_functor.cpp.

References ~CInitializationParserFunctor().

Here is the call graph for this function:

◆ ~CInitializationParserFunctor()

CInitializationParserFunctor::~CInitializationParserFunctor ( )
virtualdefault

Destructor.

Referenced by CInitializationParserFunctor().

Here is the caller graph for this function:

Member Function Documentation

◆ ActivateFileInit()

virtual void CInitializationParserFunctor::ActivateFileInit ( const std::string &  filename)
pure virtual

In case the test_v has a size over a threshold write the tests on a file.

Parameters
filenameis the file name to use

Implemented in ComputeReservedMemory, MemoryInitializationWriter, and MemoryInitializationCWriter.

◆ CheckEnd()

virtual void CInitializationParserFunctor::CheckEnd ( )
pure virtual

Check that all the necessary information was present in the initialization string.

Implemented in MemoryInitializationWriterBase, and ComputeReservedMemory.

◆ FinalizeFileInit()

virtual void CInitializationParserFunctor::FinalizeFileInit ( )
pure virtual

Copy and close the file.

Implemented in ComputeReservedMemory, MemoryInitializationWriter, and MemoryInitializationCWriter.

◆ GoDown()

virtual void CInitializationParserFunctor::GoDown ( )
pure virtual

Start the initialization of a new aggregated data structure.

Implemented in MemoryInitializationWriterBase, and ComputeReservedMemory.

◆ GoNext()

virtual void CInitializationParserFunctor::GoNext ( )
pure virtual

Consume an element of an aggregated data structure.

Implemented in MemoryInitializationWriterBase, and ComputeReservedMemory.

◆ GoUp()

virtual void CInitializationParserFunctor::GoUp ( )
pure virtual

Ends the initialization of the current aggregated data structure.

Implemented in MemoryInitializationWriterBase, and ComputeReservedMemory.

◆ Process()

virtual void CInitializationParserFunctor::Process ( const std::string &  content)
pure virtual

Process an element.

Parameters
contentis the string associated with the string

Implemented in ComputeReservedMemory, MemoryInitializationWriter, and MemoryInitializationCWriter.

Field Documentation

◆ debug_level

int CInitializationParserFunctor::debug_level
protected

◆ file_variable

std::string CInitializationParserFunctor::file_variable
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().

◆ write_in_a_file

bool CInitializationParserFunctor::write_in_a_file
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().


The documentation for this class was generated from the following files:

Generated on Mon Feb 12 2024 13:03:47 for PandA-2024.02 by doxygen 1.8.13