Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
fxexdefs.h File Reference
#include <config.h>
#include "fxheader.h"
#include <fxdefs.h>
Include dependency graph for fxexdefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  FXEX
 
namespace  FXEX::FXUtils
 

Macros

#define CALLBACK
 
#define COMPRESS_FAST   1
 
#define COMPRESS_MAX   9
 
#define COMPRESS_NONE   0
 
#define COMPRESS_NORMAL   6
 
#define FXCTOR()   fxtrace (100,"%s::%s %p\n",getClassName(),getClassName(),this)
 
#define FXDeclare(Class)    FXDECLARE(Class)
 
#define FXDeclareAbstract(Class)    FXDECLARE_ABSTRACT(Class)
 
#define FXDefMap(Class)    FXDEFMAP(Class) Class##Map[]
 
#define FXDTOR()   fxtrace (100,"%s::~%s %p\n",getClassName(),getClassName(),this)
 
#define FXEXTERN
 
#define FXFuncDecl(Func)    long on##Func (FXObject*,FXSelector,void*)
 
#define FXFuncImpl(Class, Func, tgt, sel, ptr)    long Class::on##Func (FXOject *tgt,FXSelector sel, void *ptr)
 
#define FXImplement(Class, Parent)    FXIMPLEMENT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map))
 
#define FXImplementAbstract(Class, Parent)    FXIMPLEMENT_ABSTRACT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map))
 
#define FXMapFunc(Class, SelType, Id, Func)    FXMAPFUNC(SEL_##SelType,Class::ID_##Id,Class::on##Func)
 
#define FXMapFuncs(Class, SelType, FromId, ToId, Func)    FXMAPFUNCS(SEL_##SelType,Class::ID_##FromId,Class::ID_##ToId,Class::on#Func)
 
#define FXMapType(Class, SelType, Func)    FXMAPTYPE(SEL_##SelType,Class::on##Func)
 
#define FXMapTypes(Class, FromType, ToType, Func)    FXMAPTYPES(SEL_##FromType,SEL_##ToType,Class::on##Func)
 
#define FXMETHOD(methodname)   fxtrace (100,"%s::%s %p\n",getClassName(),#methodname,this)
 
#define FXNEWLINE   "\n"
 
#define FXROUTE(src, tgt, sel, msg, ptr)    (tgt->handle(src,FXSEL(sel,msg),ptr)
 
#define FXSEND(tgt, sel, msg, ptr)    (tgt->handle(this,FXSEL(sel,msg),ptr)
 Zed A Shaw posted these (09/09/02), or a variation of them.
 
#define INFINITE   (-1)
 
#define INVALID_HANDLE   -1
 
#define MKUSHORT(l, h)   ((((FX::FXuchar)(l))&0xff) | (((FX::FXuchar)(h))<<8))
 
#define VALID_RESULT   0
 

Typedefs

typedef void * FXEX::FXDLLHandle
 
typedef FXint FXEX::FXIOState
 IO state definitions.
 
typedef FXint FXEX::FXIOStatus
 IO status definitions.
 
typedef void * FXEX::FXThreadCondition
 
typedef void * FXEX::FXThreadHandle
 
typedef void * FXEX::FXThreadMutex
 
typedef void * FXEX::FXThreadSemaphore
 
typedef FXInputHandle * FXEX::MFXThreadEventHandle
 

Enumerations

enum  {
  FXEX::SEL_DATA = FX::SEL_LAST , FXEX::SEL_THREAD , FXEX::SEL_WAITABLE_WAIT , FXEX::SEL_WAITABLE_ACTIVATE ,
  FXEX::SEL_INTERLOCK , FXEX::SEL_BARRIER_LOCK , FXEX::SEL_BARRIER_UNLOCK , FXEX::SEL_INPUT ,
  FXEX::SEL_OUTPUT , FXEX::SEL_ERROR , FXEX::SEL_IO , FXEX::SEL_IO_CONNECT ,
  FXEX::SEL_EVENT , FXEX::SEL_BEGIN , FXEX::SEL_END , FXEX::SEL_TAG ,
  FXEX::SEL_CONTENT , FXEX::SEL_REGISTRY , FXEX::SEL_LASTEX , FXEX::SEL_THREAD_EVENT
}
 
enum  {
  FXEX::FXIOStatusUnknown = -2 , FXEX::FXIOStatusError = -1 , FXEX::FXIOStatusOk = 0 , FXEX::FXIOStatusOK = 0 ,
  FXEX::FXIOStatusLast
}
 
enum  {
  FXEX::FXIOStateUnknown = -1 , FXEX::FXIOStateNone = -1 , FXEX::FXIOStateOk = 0 , FXEX::FXIOStateOK = 0 ,
  FXEX::FXIOStateUnconnected , FXEX::FXIOStateConnected , FXEX::FXIOStateOpen = FXIOStateConnected , FXEX::FXIOStateListener ,
  FXEX::FXIOStateAccepted , FXEX::FXIOStateDuplicated , FXEX::FXIOStateLast
}
 
enum  FXEX::FXFilePermission {
  FXEX::FILEPERM_NONE = 0 , FXEX::FILEPERM_USER_READ = 0x00000001 , FXEX::FILEPERM_USER_WRITE = 0x00000002 , FXEX::FILEPERM_USER_EXEC = 0X00000004 ,
  FXEX::FILEPERM_GROUP_READ = 0x00000010 , FXEX::FILEPERM_GROUP_WRITE = 0x00000020 , FXEX::FILEPERM_GROUP_EXEC = 0x00000040 , FXEX::FILEPERM_OTHER_READ = 0x00000100 ,
  FXEX::FILEPERM_OTHER_WRITE = 0x00000200 , FXEX::FILEPERM_OTHER_EXEC = 0x00000400 , FXEX::FILEPERM_READ = 0x00000111 , FXEX::FILEPERM_WRITE = 0x00000222 ,
  FXEX::FILEPERM_EXEC = 0x00000444 , FXEX::FILEPERM_ALL = 0x00000777 , FXEX::FILEPERM_SET_UID = 0x00001000 , FXEX::FILEPERM_SET_GID = 0x00002000 ,
  FXEX::FILEPERM_STICKY = 0x00004000 , FXEX::FILEPERM_SECURE_IO = FILEPERM_USER_READ | FILEPERM_USER_WRITE , FXEX::FILEPERM_DEFAULT_IO = FILEPERM_READ | FILEPERM_USER_WRITE | FILEPERM_GROUP_WRITE , FXEX::FILEPERM_DEFAULT_EXEC = FILEPERM_READ | FILEPERM_USER_WRITE | FILEPERM_GROUP_WRITE | FILEPERM_EXEC
}
 
enum  FXEX::FXSocketFamily {
  FXEX::FXSocketFamilyNone = 0 , FXEX::FXSocketFamilyLocal , FXEX::FXSocketFamilyInet , FXEX::FXSocketFamilyInet6 ,
  FXEX::FXSocketFamilyAutomatic , FXEX::FXSocketFamilyUnix = FXSocketFamilyLocal
}
 Socket families. More...
 
enum  FXEX::FXSocketType {
  FXEX::FXSocketTypeNone = 0 , FXEX::FXSocketTypeStream , FXEX::FXSocketTypeTCP = FXSocketTypeStream , FXEX::FXSocketTypeDatagram ,
  FXEX::FXSocketTypeUDP = FXSocketTypeDatagram
}
 Socket types. More...
 

Variables

FXAPI const FXuchar FXEX::FXUtils::fxexversion [3]
 Version number that the library version is compiled with.
 

Detailed Description

Author
Mathew Robertson
Daniel Krajzewicz
Michael Behrisch
Date
2004-03-19

Definition in file fxexdefs.h.

Macro Definition Documentation

◆ CALLBACK

#define CALLBACK

Definition at line 48 of file fxexdefs.h.

◆ COMPRESS_FAST

#define COMPRESS_FAST   1

Definition at line 75 of file fxexdefs.h.

◆ COMPRESS_MAX

#define COMPRESS_MAX   9

Definition at line 73 of file fxexdefs.h.

◆ COMPRESS_NONE

#define COMPRESS_NONE   0

Definition at line 76 of file fxexdefs.h.

◆ COMPRESS_NORMAL

#define COMPRESS_NORMAL   6

Definition at line 74 of file fxexdefs.h.

◆ FXCTOR

#define FXCTOR ( )    fxtrace (100,"%s::%s %p\n",getClassName(),getClassName(),this)

Definition at line 143 of file fxexdefs.h.

◆ FXDeclare

#define FXDeclare (   Class)     FXDECLARE(Class)

Quite a while ago (18/08/2000), these macros (or something similar) were posted to the FOX users list, by Dirk Zoller. I cleaned them up a little.

Definition at line 112 of file fxexdefs.h.

◆ FXDeclareAbstract

#define FXDeclareAbstract (   Class)     FXDECLARE_ABSTRACT(Class)

Definition at line 114 of file fxexdefs.h.

◆ FXDefMap

#define FXDefMap (   Class)     FXDEFMAP(Class) Class##Map[]

Definition at line 116 of file fxexdefs.h.

◆ FXDTOR

#define FXDTOR ( )    fxtrace (100,"%s::~%s %p\n",getClassName(),getClassName(),this)

Definition at line 145 of file fxexdefs.h.

◆ FXEXTERN

#define FXEXTERN

Definition at line 69 of file fxexdefs.h.

◆ FXFuncDecl

#define FXFuncDecl (   Func)     long on##Func (FXObject*,FXSelector,void*)

Definition at line 122 of file fxexdefs.h.

◆ FXFuncImpl

#define FXFuncImpl (   Class,
  Func,
  tgt,
  sel,
  ptr 
)     long Class::on##Func (FXOject *tgt,FXSelector sel, void *ptr)

Definition at line 124 of file fxexdefs.h.

◆ FXImplement

#define FXImplement (   Class,
  Parent 
)     FXIMPLEMENT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map))

Definition at line 120 of file fxexdefs.h.

◆ FXImplementAbstract

#define FXImplementAbstract (   Class,
  Parent 
)     FXIMPLEMENT_ABSTRACT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map))

Definition at line 118 of file fxexdefs.h.

◆ FXMapFunc

#define FXMapFunc (   Class,
  SelType,
  Id,
  Func 
)     FXMAPFUNC(SEL_##SelType,Class::ID_##Id,Class::on##Func)

Definition at line 132 of file fxexdefs.h.

◆ FXMapFuncs

#define FXMapFuncs (   Class,
  SelType,
  FromId,
  ToId,
  Func 
)     FXMAPFUNCS(SEL_##SelType,Class::ID_##FromId,Class::ID_##ToId,Class::on#Func)

Definition at line 130 of file fxexdefs.h.

◆ FXMapType

#define FXMapType (   Class,
  SelType,
  Func 
)     FXMAPTYPE(SEL_##SelType,Class::on##Func)

Definition at line 128 of file fxexdefs.h.

◆ FXMapTypes

#define FXMapTypes (   Class,
  FromType,
  ToType,
  Func 
)     FXMAPTYPES(SEL_##FromType,SEL_##ToType,Class::on##Func)

Definition at line 126 of file fxexdefs.h.

◆ FXMETHOD

#define FXMETHOD (   methodname)    fxtrace (100,"%s::%s %p\n",getClassName(),#methodname,this)

Definition at line 144 of file fxexdefs.h.

◆ FXNEWLINE

#define FXNEWLINE   "\n"

Definition at line 91 of file fxexdefs.h.

◆ FXROUTE

#define FXROUTE (   src,
  tgt,
  sel,
  msg,
  ptr 
)     (tgt->handle(src,FXSEL(sel,msg),ptr)

Definition at line 138 of file fxexdefs.h.

◆ FXSEND

#define FXSEND (   tgt,
  sel,
  msg,
  ptr 
)     (tgt->handle(this,FXSEL(sel,msg),ptr)

Zed A Shaw posted these (09/09/02), or a variation of them.

Definition at line 136 of file fxexdefs.h.

◆ INFINITE

#define INFINITE   (-1)

Definition at line 80 of file fxexdefs.h.

◆ INVALID_HANDLE

#define INVALID_HANDLE   -1

Definition at line 189 of file fxexdefs.h.

◆ MKUSHORT

#define MKUSHORT (   l,
 
)    ((((FX::FXuchar)(l))&0xff) | (((FX::FXuchar)(h))<<8))

Definition at line 95 of file fxexdefs.h.

◆ VALID_RESULT

#define VALID_RESULT   0

Definition at line 194 of file fxexdefs.h.