Abstract base class for all kernel-related data types used for visualization/logging. More...
#include <type_utils.hpp>
Public Member Functions | |
| virtual | ~KernelType ()=default |
| Virtual destructor to allow polymorphic deletion. | |
| arion::LOG_COLOR | get_color () |
| virtual std::string | str (std::shared_ptr< arion::Arion > arion, uint64_t val) |
Protected Member Functions | |
| KernelType (std::string name, arion::LOG_COLOR color=arion::LOG_COLOR::DEFAULT) | |
Private Attributes | |
| std::string | name |
| Display name of the data type (e.g., "File descriptor"). | |
| arion::LOG_COLOR | color |
| The log color associated with this data type for display. | |
Abstract base class for all kernel-related data types used for visualization/logging.
|
inlineprotected |
Builder for KernelType instances.
| [in] | name | The display name of the type. |
| [in] | color | The associated log color. Default is arion::LOG_COLOR::DEFAULT. |
|
virtualdefault |
Virtual destructor to allow polymorphic deletion.
| arion::LOG_COLOR arion_type::KernelType::get_color | ( | ) |
Retrieves the color associated with this type.
arion::LOG_COLOR enum value.
|
virtual |
Converts a raw 64-bit value into a formatted string representation based on the type's semantics.
| [in] | arion | Shared pointer to the main Arion instance (needed for memory access/context). |
| [in] | val | The raw 64-bit value to interpret. |
Reimplemented in arion_lnx_type::ErrCodeType, arion_lnx_type::FileDescriptorType, arion_lnx_type::InAddrTType, arion_lnx_type::In6AddrTType, arion_lnx_type::ProtFlagType, arion_lnx_type::StructSockaddrUnType, arion_poly_struct::ArionStructType< T >, arion_poly_struct::ArionStructType< struct clone_args >, arion_poly_struct::ArionStructType< struct sockaddr_in >, arion_poly_struct::ArionStructType< struct sockaddr_in6 >, arion_poly_struct::ArionStructType< struct sockaddr_un >, arion_poly_struct::ArionStructType< struct stat >, arion_poly_struct::ArionStructType< struct statx >, arion_poly_struct::ArionStructType< struct timespec >, arion_poly_struct::ArionVariableStructType, arion_type::FlagType, and arion_type::RawStringType.
|
private |
The log color associated with this data type for display.
|
private |
Display name of the data type (e.g., "File descriptor").