Arion 1.0.2-alpha
A high-performance C++ framework for emulating executable binaries.
 
Loading...
Searching...
No Matches
arion_type::KernelType Class Reference

Abstract base class for all kernel-related data types used for visualization/logging. More...

#include <type_utils.hpp>

Inheritance diagram for arion_type::KernelType:
arion_poly_struct::ArionStructType< struct clone_args > arion_poly_struct::ArionStructType< struct sockaddr_in6 > arion_poly_struct::ArionStructType< struct sockaddr_in > 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_lnx_type::ErrCodeType arion_lnx_type::FileDescriptorType arion_lnx_type::In6AddrTType arion_lnx_type::InAddrTType arion_lnx_type::ProtFlagType arion_poly_struct::ArionStructType< T > arion_poly_struct::ArionVariableStructType arion_type::FlagType arion_type::IntType arion_type::RawStringType

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.
 

Detailed Description

Abstract base class for all kernel-related data types used for visualization/logging.

Constructor & Destructor Documentation

◆ KernelType()

arion_type::KernelType::KernelType ( std::string  name,
arion::LOG_COLOR  color = arion::LOG_COLOR::DEFAULT 
)
inlineprotected

Builder for KernelType instances.

Parameters
[in]nameThe display name of the type.
[in]colorThe associated log color. Default is arion::LOG_COLOR::DEFAULT.

◆ ~KernelType()

virtual arion_type::KernelType::~KernelType ( )
virtualdefault

Virtual destructor to allow polymorphic deletion.

Member Function Documentation

◆ get_color()

arion::LOG_COLOR arion_type::KernelType::get_color ( )

Retrieves the color associated with this type.

Returns
The arion::LOG_COLOR enum value.

◆ str()

Member Data Documentation

◆ color

arion::LOG_COLOR arion_type::KernelType::color
private

The log color associated with this data type for display.

◆ name

std::string arion_type::KernelType::name
private

Display name of the data type (e.g., "File descriptor").


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