The Pedigree Project 0.1
Public Member Functions | Private Attributes | List of all members
CpuInfoCommand Class Reference
+ Inheritance diagram for CpuInfoCommand:
+ Collaboration diagram for CpuInfoCommand:

Public Member Functions

void autocomplete (const HugeStaticString &input, HugeStaticString &output)
 
bool execute (const HugeStaticString &input, HugeStaticString &output, InterruptState &state, DebuggerIO *screen)
 
const NormalStaticString getString ()
 
const char * getLine1 (size_t index, DebuggerIO::Colour &colour, DebuggerIO::Colour &bgColour)
 
const char * getLine2 (size_t index, size_t &colOffset, DebuggerIO::Colour &colour, DebuggerIO::Colour &bgColour)
 
size_t getLineCount ()
 
- Public Member Functions inherited from Scrollable
void move (size_t x, size_t y)
 
void resize (size_t width, size_t height)
 
void scroll (ssize_t lines)
 
void scrollTo (size_t absolute)
 
void scrollHorizontal (ssize_t columns)
 
void horizontalScrollTo (size_t absolute)
 
void refresh (DebuggerIO *pScreen)
 
void setScrollKeys (char up, char down)
 
ssize_t getLine ()
 
void centreOn (size_t line)
 
size_t height () const
 
size_t width () const
 
virtual size_t getContentWidth ()
 

Private Attributes

LargeStaticString m_Lines [12]
 
size_t m_LineCount
 

Additional Inherited Members

- Protected Attributes inherited from Scrollable
size_t m_x
 
size_t m_y
 
size_t m_width
 
size_t m_height
 
ssize_t m_line
 
size_t m_column
 
char m_ScrollUp
 
char m_ScrollDown
 

Detailed Description

Definition at line 33 of file CpuInfoCommand.h.

Constructor & Destructor Documentation

◆ CpuInfoCommand()

CpuInfoCommand::CpuInfoCommand ( )

Definition at line 36 of file CpuInfoCommand.cc.

◆ ~CpuInfoCommand()

CpuInfoCommand::~CpuInfoCommand ( )

Definition at line 38 of file CpuInfoCommand.cc.

Member Function Documentation

◆ autocomplete()

void CpuInfoCommand::autocomplete ( const HugeStaticString &  input,
HugeStaticString &  output 
)
virtual

Return an autocomplete string, given an input string.

Implements DebuggerCommand.

Definition at line 40 of file CpuInfoCommand.cc.

◆ execute()

bool CpuInfoCommand::execute ( const HugeStaticString &  input,
HugeStaticString &  output,
InterruptState &  state,
DebuggerIO *  screen 
)
virtual

◆ getLine1()

const char * CpuInfoCommand::getLine1 ( size_t  index,
DebuggerIO::Colour &  colour,
DebuggerIO::Colour &  bgColour 
)
virtual

Implements Scrollable.

Definition at line 171 of file CpuInfoCommand.cc.

◆ getLine2()

const char * CpuInfoCommand::getLine2 ( size_t  index,
size_t &  colOffset,
DebuggerIO::Colour &  colour,
DebuggerIO::Colour &  bgColour 
)
virtual

Implements Scrollable.

Definition at line 178 of file CpuInfoCommand.cc.

◆ getLineCount()

size_t CpuInfoCommand::getLineCount ( )
virtual

Implements Scrollable.

Definition at line 186 of file CpuInfoCommand.cc.

◆ getString()

const NormalStaticString CpuInfoCommand::getString ( )
virtual

Returns the string representation of this command.

Implements DebuggerCommand.

Definition at line 167 of file CpuInfoCommand.cc.

Member Data Documentation

◆ m_LineCount

size_t CpuInfoCommand::m_LineCount
private

Definition at line 61 of file CpuInfoCommand.h.

◆ m_Lines

LargeStaticString CpuInfoCommand::m_Lines[12]
private

Definition at line 60 of file CpuInfoCommand.h.


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