The Sparta Modeling Framework
Loading...
Searching...
No Matches
MessageInfo.hpp
1// <MessageInfo> -*- C++ -*-
2
3#pragma once
4
5#include <cstdint>
6#include <iostream>
7#include <iomanip>
8#include <ostream>
9#include <string>
10#include <thread>
11#include <ctime>
12
14
15namespace sparta
16{
17class TreeNode;
18
19 namespace log
20 {
21 // Placeholders for types expected to be defined elsewhere
22 typedef uint32_t thread_id_type;
23 typedef uint64_t sim_time_type;
24
25 typedef int64_t seq_num_type;
26
46
47
48 static constexpr const char* INFO_DELIMITER = " ";
49
55 std::ostream& operator<<(std::ostream& o, const MessageInfo& info);
56
57 } // namespace log
58} // namespace sparta
59
Basic Node framework in sparta device tree composite pattern.
Node in a composite tree representing a sparta Tree item.
Definition TreeNode.hpp:205
int64_t seq_num_type
Sequence number of a message within a thread ID. Signed so that initial state can be -1.
uint32_t thread_id_type
Identifies a thread in the simulator kernel.
std::ostream & operator<<(std::ostream &o, const MessageInfo &info)
ostream insertion operator for serializing MessageInfo.
uint64_t sim_time_type
Simulator timestamp type.
Macros for handling exponential backoff.
Logging Message information excluding actual message content.
double wall_time_type
Timing type for wall-clock time.
seq_num_type seq_num
Sequence number of message within thread.
thread_id_type thread_id
Thread ID of source.
const std::string * category_id_type
Local typedef for category ID.
category_id_type category
Category with which this message was created. Must not be NULL.
sim_time_type sim_time
Simulator timestamp.
TreeNode const & origin
Node from which message originated.
wall_time_type wall_time
Timestamp in wall-clock time (not guaranteed to be monotonically increasing)3A.