StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
swift::SKeymap Class Reference

The readline keymap wrapper. More...

#include <stdair/ui/cmdline/SReadline.hpp>

Public Member Functions

 SKeymap (bool PrintableBound=false)
 Creates a new keymap. More...
 
 SKeymap (Keymap Pattern)
 Creates a new keymap which is a copy of Pattern. More...
 
 ~SKeymap ()
 Frees the allocated keymap. More...
 
void Bind (int Key, KeyCallback Callback)
 Binds the given key to a function. More...
 
void Unbind (int Key)
 Unbinds the given key. More...
 
 SKeymap (const SKeymap &rhs)
 Copy constructor. More...
 
SKeymapoperator= (const SKeymap &rhs)
 operator= More...
 

Friends

class SReadline
 

Detailed Description

The readline keymap wrapper.

Attention: It is not thread safe! Supports: key binding, key unbinding

Definition at line 307 of file SReadline.hpp.

Constructor & Destructor Documentation

swift::SKeymap::SKeymap ( bool  PrintableBound = false)
inlineexplicit

Creates a new keymap.

Parameters
PrintableBoundif true - the printable characters are bound if false - the keymap is empty

Definition at line 319 of file SReadline.hpp.

swift::SKeymap::SKeymap ( Keymap  Pattern)
inlineexplicit

Creates a new keymap which is a copy of Pattern.

Parameters
PatternA keymap to be copied.

Definition at line 342 of file SReadline.hpp.

swift::SKeymap::~SKeymap ( )
inline

Frees the allocated keymap.

Definition at line 354 of file SReadline.hpp.

swift::SKeymap::SKeymap ( const SKeymap rhs)
inline

Copy constructor.

Parameters
rhsRight hand side object of SKeymap

Definition at line 395 of file SReadline.hpp.

Member Function Documentation

void swift::SKeymap::Bind ( int  Key,
KeyCallback  Callback 
)
inline

Binds the given key to a function.

Parameters
KeyA key to be bound
CallbackA function to be called when the Key is pressed

Definition at line 366 of file SReadline.hpp.

void swift::SKeymap::Unbind ( int  Key)
inline

Unbinds the given key.

Parameters
KeyA key to be unbound

Definition at line 381 of file SReadline.hpp.

SKeymap& swift::SKeymap::operator= ( const SKeymap rhs)
inline

operator=

Parameters
rhsRight hand side object of SKeymap

Definition at line 407 of file SReadline.hpp.

Friends And Related Function Documentation

friend class SReadline
friend

Definition at line 415 of file SReadline.hpp.


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