teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Classes | Namespaces | Macros | Typedefs | Functions
core/mode.h File Reference
#include <string>
#include <unordered_map>
#include <memory>
#include "utils.h"
#include "colors.h"
#include "command.h"

Go to the source code of this file.

Classes

class  teditor::Mode
 
struct  teditor::Mode::Registrar
 

Namespaces

 teditor
 

Macros

#define REGISTER_MODE(Name, NameStr)   Mode::Registrar mode ## Name(NameStr, Name::create, Name::modeCheck)
 

Typedefs

typedef Mode *(* teditor::ModeCreator) ()
 
typedef std::shared_ptr< Mode > teditor::ModePtr
 
typedef std::unordered_map< std::string, ModeCreator > teditor::ModeCreatorMap
 
typedef bool(* teditor::InferMode) (const std::string &)
 
typedef std::unordered_map< std::string, InferMode > teditor::ModeInferMap
 

Functions

Strings teditor::allModeNames ()
 

Macro Definition Documentation

◆ REGISTER_MODE

#define REGISTER_MODE (   Name,
  NameStr 
)    Mode::Registrar mode ## Name(NameStr, Name::create, Name::modeCheck)