Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Code::ConsoleLine Class Reference

#include <console_line.h>

Public Types

enum  Type { Type::CurrentSessionCommand = 0, Type::CurrentSessionResult = 1, Type::PreviousSessionCommand = 2, Type::PreviousSessionResult = 3 }
 

Public Member Functions

 ConsoleLine (Type type=Type::CurrentSessionCommand, const char *text=nullptr)
 
Type type () const
 
const char * text () const
 
bool isFromCurrentSession () const
 
bool isCommand () const
 
bool isResult () const
 

Static Public Member Functions

static size_t sizeOfConsoleLine (size_t textLength)
 

Detailed Description

Definition at line 8 of file console_line.h.

Member Enumeration Documentation

◆ Type

Enumerator
CurrentSessionCommand 
CurrentSessionResult 
PreviousSessionCommand 
PreviousSessionResult 

Definition at line 10 of file console_line.h.

Constructor & Destructor Documentation

◆ ConsoleLine()

Code::ConsoleLine::ConsoleLine ( Type  type = Type::CurrentSessionCommand,
const char *  text = nullptr 
)
inline

Definition at line 16 of file console_line.h.

Member Function Documentation

◆ isCommand()

bool Code::ConsoleLine::isCommand ( ) const
inline

Definition at line 21 of file console_line.h.

◆ isFromCurrentSession()

bool Code::ConsoleLine::isFromCurrentSession ( ) const
inline

Definition at line 20 of file console_line.h.

◆ isResult()

bool Code::ConsoleLine::isResult ( ) const
inline

Definition at line 22 of file console_line.h.

◆ sizeOfConsoleLine()

static size_t Code::ConsoleLine::sizeOfConsoleLine ( size_t  textLength)
inlinestatic

Definition at line 23 of file console_line.h.

◆ text()

const char* Code::ConsoleLine::text ( ) const
inline

Definition at line 19 of file console_line.h.

◆ type()

Type Code::ConsoleLine::type ( ) const
inline

Definition at line 18 of file console_line.h.


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