PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
PError.h File Reference
#include <string>
#include <list>
#include "../base/Variant.h"
#include "../base/PNode.h"

Go to the source code of this file.

Classes

class  PCallStack
 

Namespaces

namespace  PError
 

Enumerations

enum  PErrorAssertType {
  PEAT_UNDEFINED = 0 , PEAT_STACK_SIGNAL = 1 , PEAT_FUNCTION = 2 , PEAT_FUNCTION_POINTER = 4 ,
  PEAT_NUMBER = 8 , PEAT_INTEGER = 16 , PEAT_FLOAT = 32 , PEAT_STRING = 64 ,
  PEAT_LOCALVARIABLE = 128 , PEAT_GLOBALVARIABLE = 256 , PEAT_VARIABLE = 512 , PEAT_COMPLEXDATA = 1024 ,
  PEAT_AUDIOOUT = 2048 , PEAT_COLOR , PEAT_ENVIRONMENT , PEAT_FILESTREAM ,
  PEAT_FONT , PEAT_IMAGEBOX , PEAT_JOYSTICK , PEAT_KEYBOARD ,
  PEAT_LIST , PEAT_NETWORKCONNECTION , PEAT_OBJECT , PEAT_PARALLELPORT ,
  PEAT_COMPORT , PEAT_TEXTOBJECT , PEAT_TEXTBOX , PEAT_LABEL ,
  PEAT_WIDGET , PEAT_WINDOW , PEAT_MOVIE
}
 

Functions

void PError::SignalFatalError (const std::string &message)
 
void PError::SignalWarning (const std::string &message)
 
void PError::AssertType (Variant v, int type, const std::string &outsidemessage)
 
std::string PError::GetTypeName (Variant v)
 
void PError::ExitQuietly (const std::string &message, int exitCode=0)
 

Variables

bool PError::gShowErrorDialogs = true
 
bool PError::gValidatorMode = false
 

Enumeration Type Documentation

◆ PErrorAssertType

Enumerator
PEAT_UNDEFINED 
PEAT_STACK_SIGNAL 
PEAT_FUNCTION 
PEAT_FUNCTION_POINTER 
PEAT_NUMBER 
PEAT_INTEGER 
PEAT_FLOAT 
PEAT_STRING 
PEAT_LOCALVARIABLE 
PEAT_GLOBALVARIABLE 
PEAT_VARIABLE 
PEAT_COMPLEXDATA 
PEAT_AUDIOOUT 
PEAT_COLOR 
PEAT_ENVIRONMENT 
PEAT_FILESTREAM 
PEAT_FONT 
PEAT_IMAGEBOX 
PEAT_JOYSTICK 
PEAT_KEYBOARD 
PEAT_LIST 
PEAT_NETWORKCONNECTION 
PEAT_OBJECT 
PEAT_PARALLELPORT 
PEAT_COMPORT 
PEAT_TEXTOBJECT 
PEAT_TEXTBOX 
PEAT_LABEL 
PEAT_WIDGET 
PEAT_WINDOW 
PEAT_MOVIE 

Definition at line 36 of file PError.h.

37 {
38 //These are based on variant types:
39 PEAT_UNDEFINED = 0, // undefined, error
40 PEAT_STACK_SIGNAL = 1, // an enum that signals stuff to the evaluator stack, for internal use only.
41 PEAT_FUNCTION = 2, // the name of a function.
42 PEAT_FUNCTION_POINTER = 4, // A pointer to a function. Used for compiled library functions.
43 PEAT_NUMBER = 8, // any number.
44 PEAT_INTEGER = 16, // an integer
45 PEAT_FLOAT = 32, // a float
46 PEAT_STRING = 64, // a string of characters
47 PEAT_LOCALVARIABLE = 128, // a 'variable'; i.e. a char* symbolizing another piece of data.
48 PEAT_GLOBALVARIABLE = 256, // a 'variable'; i.e. a char* symbolizing another piece of data.
49 PEAT_VARIABLE = 512, // either a local or global variable
50 PEAT_COMPLEXDATA = 1024, // Any one of a number of compex data 'objects'.
51
52 //These are based on PComplexData types:
53 PEAT_AUDIOOUT = 2048,
72 };
@ PEAT_KEYBOARD
Definition PError.h:60
@ PEAT_JOYSTICK
Definition PError.h:59
@ PEAT_FUNCTION_POINTER
Definition PError.h:42
@ PEAT_VARIABLE
Definition PError.h:49
@ PEAT_STACK_SIGNAL
Definition PError.h:40
@ PEAT_COMPLEXDATA
Definition PError.h:50
@ PEAT_FONT
Definition PError.h:57
@ PEAT_NETWORKCONNECTION
Definition PError.h:62
@ PEAT_FUNCTION
Definition PError.h:41
@ PEAT_COMPORT
Definition PError.h:65
@ PEAT_TEXTOBJECT
Definition PError.h:66
@ PEAT_LABEL
Definition PError.h:68
@ PEAT_GLOBALVARIABLE
Definition PError.h:48
@ PEAT_COLOR
Definition PError.h:54
@ PEAT_LIST
Definition PError.h:61
@ PEAT_PARALLELPORT
Definition PError.h:64
@ PEAT_TEXTBOX
Definition PError.h:67
@ PEAT_UNDEFINED
Definition PError.h:39
@ PEAT_INTEGER
Definition PError.h:44
@ PEAT_WIDGET
Definition PError.h:69
@ PEAT_WINDOW
Definition PError.h:70
@ PEAT_STRING
Definition PError.h:46
@ PEAT_OBJECT
Definition PError.h:63
@ PEAT_FLOAT
Definition PError.h:45
@ PEAT_FILESTREAM
Definition PError.h:56
@ PEAT_ENVIRONMENT
Definition PError.h:55
@ PEAT_AUDIOOUT
Definition PError.h:53
@ PEAT_IMAGEBOX
Definition PError.h:58
@ PEAT_LOCALVARIABLE
Definition PError.h:47
@ PEAT_NUMBER
Definition PError.h:43
@ PEAT_MOVIE
Definition PError.h:71