fgms 0.11.8
The
FlightGear MultiPlayer Server
project
common.hxx File Reference
#include <string.h>
#include <stdlib.h>
#include <exception>
#include <iostream>
#include "debug.hxx"

Go to the source code of this file.

Classes

class  LIBCLI::arg_error
 
class  LIBCLI::mem_error
 

Namespaces

 LIBCLI
 

Macros

#define CALL_MEMBER_FN(object, ptrToMember)   ((object).*(ptrToMember))
 
#define free_z(p)   do { if (p) { free (p); (p) = 0; } } while (0)
 
#define UNUSED(d)   d
 

Enumerations

enum  LIBCLI::CLI_STATES {
  LIBCLI::STATE_LOGIN, LIBCLI::STATE_PASSWORD, LIBCLI::STATE_NORMAL, LIBCLI::STATE_ENABLE_PASSWORD,
  LIBCLI::STATE_ENABLE
}
 
enum  LIBCLI::MATCH_MODE { LIBCLI::MATCH_NORM = 0, LIBCLI::MATCH_INVERT = 2 }
 
enum  LIBCLI::MODE { LIBCLI::MODE_ANY = -1, LIBCLI::MODE_EXEC = 0, LIBCLI::MODE_CONFIG = 1 }
 
enum  LIBCLI::PRINT_MODE { LIBCLI::PRINT_PLAIN = 0x00, LIBCLI::PRINT_FILTERED = 0x01 }
 
enum  LIBCLI::PRIVLEVEL { LIBCLI::UNPRIVILEGED = 0, LIBCLI::PRIVILEGED = 15 }
 
enum  LIBCLI::RETURN_CODES { LIBCLI::OK = 0, LIBCLI::ERROR_ANY = -1, LIBCLI::QUIT = -2, LIBCLI::ERROR_ARG = -3 }
 

Variables

const int LIBCLI::MAX_HISTORY = 256
 

Macro Definition Documentation

#define CALL_MEMBER_FN (   object,
  ptrToMember 
)    ((object).*(ptrToMember))
#define UNUSED (   d)    d

Definition at line 27 of file common.hxx.