catch me if you can  0.1
Classes | Typedefs | Variables
type.h File Reference

Definition of usefull types or aliases for the project. More...

#include <string>
#include <vector>
#include <map>
Include dependency graph for type.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AuthorizedKey
 Struct containing all the authorized keys in the struct CMyParam. More...
 

Typedefs

typedef std::vector< char > CVLine
 CVLine : alias to a line of the matrix. More...
 
typedef std::vector< CVLineCMat
 CMat : alias to a game grid type. More...
 
typedef std::pair< unsigned, unsigned > CPosition
 CPosition : a pair gathering the coordinates in the grid. More...
 

Variables

const AuthorizedKey KAuthorizedKey
 KAuthorizedKey. More...
 
const std::map< std::string, std::string > KColor
 KColor : map between the "human" color and its correspondence for the Unix terminal. More...
 
const char KEmpty = ' '
 KEmpty : character for an empty cell. More...
 

Detailed Description

Definition of usefull types or aliases for the project.

Author
Alain Casali
Marc Laporte
Version
1.0
Date
18 décembre 2018

Definition in file type.h.

Typedef Documentation

std::vector< CVLine > CMat

CMat : alias to a game grid type.

Definition at line 25 of file type.h.

typedef std::pair<unsigned, unsigned> CPosition

CPosition : a pair gathering the coordinates in the grid.

Definition at line 30 of file type.h.

typedef std::vector<char> CVLine

CVLine : alias to a line of the matrix.

Definition at line 19 of file type.h.

Variable Documentation

const AuthorizedKey KAuthorizedKey

KAuthorizedKey.

Definition at line 49 of file type.h.

const std::map<std::string, std::string> KColor
Initial value:
{
{"KReset", "0"},
{"KBlack", "30"},
{"KRed", "31"},
{"KGreen", "32"},
{"KYellow", "33"},
{"KBlue", "34"},
{"KMAgenta", "35"},
{"KCyan", "36"},
}

KColor : map between the "human" color and its correspondence for the Unix terminal.

Definition at line 56 of file type.h.

const char KEmpty = ' '

KEmpty : character for an empty cell.

Definition at line 71 of file type.h.