P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::Test::EventLoggerTestable Class Reference
Inheritance diagram for P4::Test::EventLoggerTestable:
[legend]

Public Member Functions

void restore ()
 
- Public Member Functions inherited from EventLogger
void debug (unsigned level, const std::string &file, const std::string &message)
 
void decision (unsigned level, const std::string &file, const std::string &description, const std::string &what, const std::string &why)
 
void deinit ()
 
void enable ()
 
void error (const P4::ErrorMessage &msg)
 
void init (const std::string &outdir, const std::string &filename)
 
void iterationChange (unsigned iteration, AllocPhase phase)
 
void parserError (const P4::ParserErrorMessage &msg)
 
void pipeChange (int pipeId)
 
void warning (const P4::ErrorMessage &msg)
 

Static Public Member Functions

static EventLoggerTestableget2 ()
 
static DebugHook getDebugHook2 ()
 
- Static Public Member Functions inherited from EventLogger
static EventLoggerget ()
 
static P4::DebugHook getDebugHook ()
 

Additional Inherited Members

- Public Types inherited from EventLogger
enum class  AllocPhase { PhvAllocation , TablePlacement }
 
- Protected Member Functions inherited from EventLogger
 EventLogger (const EventLogger &other)=delete
 
 EventLogger (EventLogger &&other)=delete
 
int getFileNameId (const std::string &name)
 
int getManagerId (const std::string &name)
 
void logProperties ()
 
template<typename T >
void logSink (const T *obj)
 
void nullInit ()
 
EventLoggeroperator= (const EventLogger &other)=delete
 
void passChange (const std::string &manager, const std::string &pass, unsigned seq)
 
- Protected Attributes inherited from EventLogger
const time_t BEGIN_TIME = std::time(nullptr)
 
bool enabled = false
 
int fileId = 0
 
std::vector< std::string > fileNames
 
std::map< std::string, int > fileNameToIds
 
bool initialized = false
 
std::string lastManager = ""
 
std::string lastPass = ""
 
unsigned lastSeq = 0
 
int managerId = 0
 
std::vector< std::string > managerNames
 
std::map< std::string, int > managerNameToIds