NLMISC Namespace Reference

This namespace contains all miscellaneous classes used by other modules. More...

Classes

class  CAABBox
 An Axis Aligned Bounding Box. More...
class  CAABBoxExt
 An Extended Axis Aligned Bouding Box. More...
class  INelContext
 Interface definition for nel context. More...
class  CApplicationContext
 This class implement the context interface for the application module That means that this class will really hold the data. More...
class  CLibraryContext
 This class implements the context interface for the a library module. More...
class  CArray2D
 A simple 2D array. More...
class  CAsyncFileManager
 CAsyncFileManager is a class that manage file loading in a seperate thread. More...
class  CBigFile
struct  TBMSSerialInfo
struct  TBMSDbgInfoData
class  CBMSDbgInfo
class  CBitMemStream
 Bit-oriented memory stream. More...
class  CBitSet
 A BitSet, to test / set flags quickly. More...
class  CBitmap
 Class Bitmap. More...
class  CBlockMemory
 Block memory allocation. More...
class  CBSphere
 A bounding Sphere. More...
class  CBufFIFO
 This class is a dynamic size FIFO that contains variable size uint8 buffer. More...
class  CFpuChecker
class  CClassId
 A unique id to specify Object by a uint64. More...
class  CClassIdHashMapTraits
 Class to be used as a hash traits for a hash_map accessed by CClassId Ex: CHashMap< CClassId, CMyData, CClassIdHashMapTraits> _MyHashMap;. More...
struct  ERegistry
 Class Registry Exception. More...
struct  ERegisteredClass
struct  EUnregisteredClass
class  IClassable
 An Object Streamable interface. More...
class  CClassRegistry
 The Class registry where we can instanciate IClassable objects from their names. More...
class  CCmdArgs
class  CCoTask
 The coroutine task class encapsulate the coroutines detail and provide an easy to use simple master/slave coroutine model. More...
class  ICommand
 Create a function that can be call in realtime. More...
struct  TCommandHandlerInfo
 Struct to host data for one object command. More...
struct  TCommandHandlerClassInfo
 Struct to host data for all the commands of an object class. More...
class  ICommandsHandler
 Base class for command handler. More...
struct  TCommandHandler
class  CCommandRegistry
 The command registry is a singleton that hold all available commands. More...
struct  CSerialCommand
 This class is only used to serialize easily a command for the admin service for example. More...
class  Exception
 Base class for all NeL exception. More...
class  CConfigFile
 CConfigFile class. More...
struct  EConfigFile
struct  EBadType
struct  EBadSize
struct  EUnknownVar
struct  EParseError
struct  EFileNotFound
class  CContiguousBlockAllocator
 One of the simplest scheme of allocation around, but very useful in some situations. More...
struct  CCpuInfo___
 This helps to know whether cpu has some features such as mmx, sse . More...
class  CCPUTimeStat
 Utility class to read cpu time information from /proc/stat and /cpu/pid/stat Allows accurate timing measures for both cpu and process (at least at OS timing accuracy) Call peekMeasures() once in a while (once a second, for instance, to avoid to much load) then call each getCPU. More...
class  CImposterLog
 Imposter class to wrap all global access to the nel context for backward compatibility Yoyo note: This was a template before, hence with inline. More...
struct  EFatalError
class  ETrapDebug
class  CMustConsume
struct  TInstanceCounterData
 Data for instance counting. More...
class  CInstanceCounterManager
class  CInstanceCounterLocalManager
class  CNLDebugOverride
class  CNLInfoOverride
class  CNLWarningOverride
class  CNLLogOverride
class  CNLSmartLogOverride
class  IDisplayer
 Displayer interface. More...
class  CStdDisplayer
 Std displayer. More...
class  CFileDisplayer
 File displayer. More...
class  CMsgBoxDisplayer
 Message Box displayer. More...
class  CLibrary
class  INelLibrary
 Interface class for 'pure Nel' library module. More...
class  CEntityIdTranslator
struct  CEntityId
 Entity identifier. More...
struct  CEntityIdHashMapTraits
 a generic hasher for entities More...
struct  TSimpleEnum
struct  TContainedEnum
struct  CEnumBitset
 Utility to build 'ored' bit set from a 2 powered enum. More...
class  CEvalNumExpr
 This class performs numerical expression parsing. More...
class  IEventEmitter
 CEventEmitter Send events to the event server. More...
class  CEventEmitterMulti
 The composite pattern applied to events emmitters. More...
class  IEventListener
 Interface for event listener. More...
class  CEventListenerAsync
 CEventListenerAsync. More...
class  CEventServer
 CEventServer. More...
class  CEvent
 CEvent. More...
class  CEventKey
 CEventKey. More...
class  CEventKeyDown
 CEventKeyDown Send when a key is push down. More...
class  CEventKeyUp
 CEventKeyUp. More...
class  CEventChar
 CEventChar. More...
class  CEventMouse
 CEventMouse. More...
class  CEventMouseDown
 CEventMouseDown Send when a single mouse button is pushed down. More...
class  CEventMouseUp
 CEventMouseUp Send when a single mouse button is pushed down. More...
class  CEventMouseMove
 CEventMouseMove Button have the state of the three mouse and SHIFT CTRL and ALT system keys. More...
class  CEventMouseDblClk
 CEventMouseDblClk Send when a single mouse button is double clicked. More...
class  CEventMouseWheel
 CEventMouseWheel Send when the mouse wheel is actioned. More...
class  CEventActivate
 CEventActivate. More...
class  CEventSetFocus
 CEventSetFocus. More...
class  CEventDestroyWindow
 CEventDestroyWindow. More...
class  CEventIME
 CEventIME. More...
class  CEventDisplayChange
 CEventDisplayChange : Called user has changed the desktop resolution. More...
class  IFactoryRegister
 Interface class for object registered in the factory. More...
class  CFactory
 Factory implementation class. More...
class  CFactoryRegister
 This class is responsible for creating the factorable object and to register them in the factory instance. More...
class  IFactoryIndirectRegister
 Interface class for object registered in the indirect factory. More...
class  CFactoryIndirect
 Indirect factory implementation class. More...
class  CFactoryIndirectRegister
class  CFastMem
 Functions for Fast Memory manipulation with Pentium-class processors. More...
struct  EFile
 File Exception. More...
struct  EFileNotOpened
struct  EReadError
struct  EWriteError
struct  EDiskFullError
struct  ERenameError
class  CIFile
 Input File. More...
class  COFile
 Output File. More...
class  CFixedSizeAllocator
 An allocator that can allocate and deallocate blocks of fixed size in O(1) Blocks are managed by chunks. More...
struct  CGameDeviceDesc
 Describe a game device. More...
struct  IGameDevice
 This abstract a joystick or gamepad. More...
class  CGDMouseMove
 A raw mouse move message, expressed in mickeys (relative values). More...
class  CGameDeviceEvent
 An event from a game device (joystick, joypad . More...
class  CGDButton
 A button state has changed. More...
class  CGDButtonDown
 A button has been pushed. More...
class  CGDButtonUp
 A button has been released. More...
class  CGDAxisMoved
 An axis has moved. More...
class  CGDSliderMoved
 A slider position has changed. More...
class  CGDPOVChanged
 A point of view control changed. More...
class  CLineColor
 A line with 2 colors. More...
class  CLineUV
 A line with 2 uvs. More...
class  CLineColorUV
 A line with 2 colors and 2 uvs. More...
class  CTriangleColor
 A triangle with 3 colors. More...
class  CTriangleUV
 A triangle with 3 uvs. More...
class  CTriangleColorUV
 A triangle with 3 colors and 3 uvs. More...
class  CQuadColor
 A quad with 4 colors. More...
class  CQuadUV
 A quad with 4 uvs. More...
class  CQuadColorUV
 A quad with 4 colors and 4 uvs. More...
class  CQuadColorUV2
 A quad with 4 colors and 8 uvs. More...
class  CGridTraversal
 Utility class for incremental grid traversal. More...
class  CHeapMemory
 A Heap manager. More...
class  CSimpleClock
 A simple clock to measure ticks. More...
class  CHTimer
 Hierarchical timing system. More...
class  CAutoTimer
 An automatic measuring timer. More...
class  CAutoTimerInst
 Same but display result at end. More...
class  CHistoric
 An historic with user defined size. More...
class  CI18N
 Class for the internationalization. More...
struct  EXmlParsingError
class  CIXml
 Input xml stream. More...
struct  IInputDevice
 Base class that wrap to a device. More...
struct  EInputDevice
struct  IInputDeviceManager
 Interface for objects that give low level access to devices (mouse, keyboard, joypads and joysticks). More...
class  CInputDeviceServer
 Base class for an input device server. More...
struct  IInputDeviceEvent
 An event from an input device. More...
struct  IKeyboardDevice
 Gives access to low level keyboard parameters

  • 'Shift' messages are replaced by RShift and LShift msg.
More...
class  CLine
 A simple couple of vertex. More...
class  CLog
 When display() is called, the logger builds a string and sends it to its attached displayers. More...
class  CMatrix
 A 4*4 Homogeneous Matrix. More...
struct  CHashKeyMD5
 MD5 Low level routines Largely inspired from the RSA Data Security works. More...
class  CMD5Context
class  CMemDisplayer
 Display into a string vector. More...
class  CLightMemDisplayer
 Same as CMemDisplayer but only display the text (no line, no date, no process. More...
struct  EMemStream
 Exception class for CMemStream. More...
class  CMemStreamBuffer
 This class implement a copy on write behavior for memory stream buffer. More...
class  CMemStream
 Memory stream. More...
struct  IMouseDevice
 An interface to a low level mouse device. More...
class  CMouseSmoother
 This smooth position of mouse using cubic splines. More...
struct  TMutableContainer
 Container wrapper that allow read/write access to element stored in a const container. More...
class  CUnfairMutex
 Classic mutex implementation (not necessarly fair) Don't assume the mutex are recursive (ie don't call enter() several times on the same mutex from the same thread without having called leave()) ; and don't assume either the threads are woken-up in the same order as they were put to sleep ! More...
class  CFastMutex
 Fast mutex implementation (not fairly) The mutex ARE NOT recursive (ie don't call enter() several times on the same mutex from the same thread without having called leave()) ; The threads ARE NOT woken-up in the same order as they were put to sleep. More...
class  CFastMutexMP
 Fast mutex for multiprocessor implementation (not fairly). More...
class  CSharedMutex
 Windows: uses Mutex, the handle can't be shared among processes, but the mutex still can be be shared by passing a common object name to createByName() / createByKey(). More...
class  CFairMutex
 Kind of "fair" mutex. More...
class  CUnfairSynchronized
 This class ensure that the Value is accessed by only one thread. More...
class  CFairSynchronized
 This class is similar to CUnfairSynchronized, but it ensures that the threads are woken-up in the same order as they were put to sleep. More...
class  CAutoMutex
 Helper class that allow easy usage of mutex to protect a local block of code with an existing mutex. More...
class  CNoiseValue
 A class which generate noisy value, according to a position. More...
class  CNoiseColorGradient
 A noisy color generator. More...
class  COXml
 Output xml stream. More...
class  CObjectArenaAllocator
 An allocator that can allocate/release in O(1) for a finite number of possible blocks size (usually small). More...
struct  EReallocationFailed
 Exception raised when a reallocation fails. More...
class  CObjectVector
 The purpose of this class is to copy most (but not all) of stl vector<> features, without some of the speed/memory problems involved:

  • size of a vector<T> is 16 bytes typically.
More...
class  CObjectVector< uint8, true >
class  CObjectVector< sint8, true >
class  CObjectVector< uint16, true >
class  CObjectVector< sint16, true >
class  CObjectVector< uint32, true >
class  CObjectVector< sint32, true >
class  CObjectVector< uint64, true >
class  CObjectVector< sint64, true >
class  CObjectVector< float, true >
class  CObjectVector< double, true >
struct  EPathNotFound
 Exception throw when a find is not found in a lookup() call. More...
class  CFileContainer
 Utility to store a pre-built list of file, bnp and xml_pack Used by CPath to store the default application patch. More...
class  CPath
 Utility class for searching files in different paths. More...
struct  CFile
 Utility class for file manipulation. More...
class  CPlane
 Class CPlane. More...
class  CPolygon
 A polygon, with an unlimited size of vertices. More...
class  CPolygon2D
 A 2d convex polygon. More...
class  CPoolMemory
 Pool memory allocation. More...
class  IProgressCallback
 Progress callback interface. More...
class  CQuad
 A simple quad of vertex. More...
struct  CAngleAxis
 An AngleAxis. More...
class  CQuatT
 A Template quaternion. More...
class  CQuat
 A float quaternion. More...
class  CQuatD
 A double quaternion. More...
class  CRandom
 A simple, os-independant random generator. More...
class  CReaderWriter
 This class allows a reader/writer ressource usage policy. More...
class  CRWSynchronized
 This class uses a CReaderWriter object to implement a synchronized object (see mutex.h for standard CSynchronized. More...
class  CRect
 This class describe an integer 2d rectangle. More...
class  CResourcePtr
 CResourcePtr: an handle on a ptr. More...
class  CStaticResourcePtr
 CStaticResourcePtr: a CResourcePtr remplacement that doesn't support the resource unload/reload. More...
class  CRGBA
 Class pixel RGBA. More...
class  CBGRA
 Class pixel BGRA, Windows style pixel. More...
class  CRGBAF
 Class pixel float RGBA. More...
class  CSharedMemory
 Encapsulation of shared memory APIs. More...
class  CSheetId
 CSheetId. More...
class  CSheetIdHashMapTraits
 Class to be used as a hash traits for a hash_map accessed by CSheetId Ex: hash_map< CSheetId, CMyData, CSheetIdHashMapTraits> _MyHashMap;. More...
class  CSingleton
 Example:. More...
class  CManualSingleton
 A variant of the singleton, not fully compliant with the standard design pattern It is more appropriate for object built from a factory but that must be instanciate only once. More...
class  CRefCount
 To use CSmartPtr or CRefPtr, derive from this class. More...
class  CVirtualRefCount
class  CSmartPtr
 Standard SmartPtr class. More...
class  CRefPtr
 CRefPtr: an handle on a ptr. More...
class  CVirtualRefPtr
class  IDbgPtrData
class  CDbgRefCount
class  CDbgPtr
class  CstCDbgPtr
class  IListener
class  ISpeaker
class  CSpeaker
class  CListener
class  CSString
 CSString : std::string with more functionalities and case insensitive compare. More...
class  CStaticMap
 Implemented with a std::vector Use it not like a map : begin by adding all your values with add()/del()/fromMap() and then call endAdd() that performs a slow sort on the vector and then call find() to find the element you want. More...
class  CSTLBlockAllocator
 This class is a STL block allocator which use CBlockMemory. More...
class  CSTLBlockList
 This class is a list<> which use CSTLBlockAllocator. More...
class  CStopWatch
 Stopwatch class used for performance measurements and statistics. More...
struct  EStream
 Stream Exception. More...
struct  EOlderStream
struct  ENewerStream
struct  EInvalidDataStream
struct  ESeekNotSupported
struct  ENotOutputStream
struct  ENotInputStream
struct  EStreamOverflow
 This exception is raised when someone tries to serialize in more than there is. More...
class  IStream
 A IO stream interface. More...
class  IStreamable
 An Object Streamable interface. More...
struct  CUnsensitiveStrLessPred
class  CStringConversion
 This class allow simple mapping between string and other type (such as integral types or enum) In fact this primarily intended to make a string / enum correspondance Example of use :. More...
class  CStringIdArray
 The goal of this class is to associate number and string. More...
struct  CStringIdHashMapTraits
class  CStringMapper
 A static class that map string to integer and vice-versa Each different string is tranformed into an unique integer identifier. More...
class  CStaticStringMapper
 After endAdd you cannot add strings anymore or it will assert. More...
class  CStringStream
 Memory stream that is serialized from/to plain text (human-readable). More...
class  CSystemInfo
 This class provides general system-level information about the local machine. More...
class  IRunnablePos
 A class derived from IRunnable to get a position. More...
class  CTaskManager
 CTaskManager is a class that manage a list of Task with one Thread. More...
class  CTDS
 Thread dependant storage class. More...
class  IRunnable
 Thread callback interface. More...
class  IThread
 Thread base interface, must be implemented for all OS. More...
struct  EThread
class  IProcess
 Process base interface, must be implemented for all OS. More...
class  CTime
 This class provide a independant local time system. More...
struct  CTraits
 Class that gives informations about a type. More...
class  CTriangle
 A simple triangles of 3 points. More...
class  CTwinMap
 Bidirectionnal association between values Behaves like a map, but key can be used as value and vice-versa. More...
struct  CUCStringHashMapTraits
class  CUV
 2d UV. More...
class  CUVW
 3d UV. More...
class  CValueSmootherTemplate
 A smoother of values. More...
class  CValueSmootherTemplate< bool >
 A smoother replacement for boolean. More...
class  CValueSmoother
class  IVariable
class  CVariablePtr
class  CVariable
class  CVariable< std::string >
class  IVariableChangedCallback
 This class can provide a callback called when the value of a variable has been changed. More...
class  CVector
 A 3D vector of float. More...
class  CVector2d
 A 2D vector of double. More...
class  CVector2f
 A 2D vector of float. More...
class  CVectorH
 Homogeneus vector. More...
class  CVectorD
 A 3D vector of double. More...
class  CWindowDisplayer
 this displayer displays on a win32 windows. More...
class  CWordsDictionary
 Words dictionary: allows to search for keys and words in <type>_words_<language>.txt Unicode files. More...
class  CXMLPack
 The xml pack is a data format to store a great number of XML file in a simple pseudo XML format. More...
class  CUnixEventEmitter
 TODO Class description. More...
struct  EDDSBadHeader
struct  ESeekFailed
struct  EAllocationFailure
struct  TCoTaskData
class  CCurrentCoTask
 Management of current task in a thread. More...
struct  TCommandParams
struct  EmitterEqualPred
struct  CInputDeviceEventLess
union  semun
class  CRandomGrid3D
 A static 3D array of random value + other infos for noise. More...
struct  CFileEntry
class  CConcavePolygonsVertexDesc
class  CBSPNode2v
class  CUpdateThread

Typedefs

typedef std::vector
< TBMSSerialInfo
TBMSSerialInfoList
typedef std::string(* TCrashCallback )()
typedef std::multimap
< CClassId, IEventListener
*, CClassIdHashMapTraits
mapListener
typedef std::vector
< CGameDeviceDesc
TDeviceDescVect
typedef key_t TSharedMemId
typedef std::vector< CSStringCVectorSString
typedef uint32 TTickDuration
typedef uint32 TMsDuration
typedef const std::string * TStringId
typedef uint TSStringId
typedef double TGameTime
 New time types.
typedef uint32 TGameCycle
typedef double TLocalTime
typedef sint64 TCPUCycle
typedef sint64 TTime
 Old time type.
typedef sint64 TTicks
typedef void *(* memcpyPtr )(void *dts, const void *src, size_t nbytes)
typedef std::list< uint64TFileAccessTimes
typedef CHashMap< std::string,
TFileAccessTimes
TFileAccessLog
typedef NLMISC::CSynchronized
< TFileAccessLog
TSynchronizedFileAccessLog
typedef std::map< float,
CConcavePolygonsVertexDesc
TCConcavePolygonsVertexMap
typedef bool(* TEmailFunction )(const std::string &smtpServer, const std::string &from, const std::string &to, const std::string &subject, const std::string &body, const std::string &attachedFile, bool onlyCheck)

Enumerations

enum  TKey {
  Key0 = '0', Key1 = '1', Key2 = '2', Key3 = '3',
  Key4 = '4', Key5 = '5', Key6 = '6', Key7 = '7',
  Key8 = '8', Key9 = '9', KeyA = 'A', KeyB = 'B',
  KeyC = 'C', KeyD = 'D', KeyE = 'E', KeyF = 'F',
  KeyG = 'G', KeyH = 'H', KeyI = 'I', KeyJ = 'J',
  KeyK = 'K', KeyL = 'L', KeyM = 'M', KeyN = 'N',
  KeyO = 'O', KeyP = 'P', KeyQ = 'Q', KeyR = 'R',
  KeyS = 'S', KeyT = 'T', KeyU = 'U', KeyV = 'V',
  KeyW = 'W', KeyX = 'X', KeyY = 'Y', KeyZ = 'Z',
  KeyLBUTTON = 0x01, KeyRBUTTON = 0x02, KeyCANCEL = 0x03, KeyMBUTTON = 0x04,
  KeyBACK = 0x08, KeyTAB = 0x09, KeyCLEAR = 0x0C, KeyRETURN = 0x0D,
  KeySHIFT = 0x10, KeyCONTROL = 0x11, KeyMENU = 0x12, KeyPAUSE = 0x13,
  KeyCAPITAL = 0x14, KeyKANA = 0x15, KeyHANGEUL = 0x15, KeyHANGUL = 0x15,
  KeyJUNJA = 0x17, KeyFINAL = 0x18, KeyHANJA = 0x19, KeyKANJI = 0x19,
  KeyESCAPE = 0x1B, KeyCONVERT = 0x1C, KeyNONCONVERT = 0x1D, KeyACCEPT = 0x1E,
  KeyMODECHANGE = 0x1F, KeySPACE = 0x20, KeyPRIOR = 0x21, KeyNEXT = 0x22,
  KeyEND = 0x23, KeyHOME = 0x24, KeyLEFT = 0x25, KeyUP = 0x26,
  KeyRIGHT = 0x27, KeyDOWN = 0x28, KeySELECT = 0x29, KeyPRINT = 0x2A,
  KeyEXECUTE = 0x2B, KeySNAPSHOT = 0x2C, KeyINSERT = 0x2D, KeyDELETE = 0x2E,
  KeyHELP = 0x2F, KeyLWIN = 0x5B, KeyRWIN = 0x5C, KeyAPPS = 0x5D,
  KeyNUMPAD0 = 0x60, KeyNUMPAD1 = 0x61, KeyNUMPAD2 = 0x62, KeyNUMPAD3 = 0x63,
  KeyNUMPAD4 = 0x64, KeyNUMPAD5 = 0x65, KeyNUMPAD6 = 0x66, KeyNUMPAD7 = 0x67,
  KeyNUMPAD8 = 0x68, KeyNUMPAD9 = 0x69, KeyMULTIPLY = 0x6A, KeyADD = 0x6B,
  KeySEPARATOR = 0x6C, KeySUBTRACT = 0x6D, KeyDECIMAL = 0x6E, KeyDIVIDE = 0x6F,
  KeyF1 = 0x70, KeyF2 = 0x71, KeyF3 = 0x72, KeyF4 = 0x73,
  KeyF5 = 0x74, KeyF6 = 0x75, KeyF7 = 0x76, KeyF8 = 0x77,
  KeyF9 = 0x78, KeyF10 = 0x79, KeyF11 = 0x7A, KeyF12 = 0x7B,
  KeyF13 = 0x7C, KeyF14 = 0x7D, KeyF15 = 0x7E, KeyF16 = 0x7F,
  KeyF17 = 0x80, KeyF18 = 0x81, KeyF19 = 0x82, KeyF20 = 0x83,
  KeyF21 = 0x84, KeyF22 = 0x85, KeyF23 = 0x86, KeyF24 = 0x87,
  KeyNUMLOCK = 0x90, KeySCROLL = 0x91, KeyLSHIFT = 0xA0, KeyRSHIFT = 0xA1,
  KeyLCONTROL = 0xA2, KeyRCONTROL = 0xA3, KeyLMENU = 0xA4, KeyRMENU = 0xA5,
  KeySEMICOLON = 0xBA, KeyEQUALS = 0xBB, KeyCOMMA = 0xBC, KeyDASH = 0xBD,
  KeyPERIOD = 0xBE, KeySLASH = 0xBF, KeyTILDE = 0xC0, KeyLBRACKET = 0xDB,
  KeyBACKSLASH = 0xDC, KeyRBRACKET = 0xDD, KeyAPOSTROPHE = 0xDE, KeyPARAGRAPH = 0xDF,
  KeyOEM_102 = 0xE2, KeyPROCESSKEY = 0xE5, KeyATTN = 0xF6, KeyCRSEL = 0xF7,
  KeyEXSEL = 0xF8, KeyEREOF = 0xF9, KeyPLAY = 0xFA, KeyZOOM = 0xFB,
  KeyNONAME = 0xFC, KeyPA1 = 0xFD, KeyOEM_CLEAR = 0xFE, KeyCount = 0xFF
}
enum  TMouseButton {
  noButton = 0x0, leftButton = 0x1, middleButton = 0x2, rightButton = 0x4,
  ctrlButton = 0x8, shiftButton = 0x10, altButton = 0x20
}
enum  TKeyButton { noKeyButton = 0x0, ctrlKeyButton = 0x8, shiftKeyButton = 0x10, altKeyButton = 0x20 }
enum  TReportResult { ReportDebug, ReportIgnore, ReportQuit, ReportError }
 

Display a custom message box.

More...

Functions

std::string toString (NL3D::CPSEmitter::TEmissionType type)
 NL_TRIVIAL_TYPE_TRAITS (NL3D::CPlaneBasis)
template<class T , class U >
T blend (const T &v0, const T &v1, const U &blendFactor)
void incrementalBlend (float &value, float target, float absDelta)
template<class T , class U >
T computeBilinear (const T &v0, const T &v1, const T &v2, const T &v3, const U &s, const U &t)
 bilinear of 4 values v3 v2 +-----+ | | | | +-----+ v0 v1
void drawFullLine (float x0, float y0, float x1, float y1, std::vector< std::pair< sint, sint > > &result)
 Select all points crossed by the line [(x0,y0) ; (x1,y1)] Not the same than brensenham.
void drawLine (float x0, float y0, float x1, float y1, std::vector< std::pair< sint, sint > > &result)
 Select points on the line [(x0,y0) ; (x1,y1)].
template<class T >
uint searchLowerBound (const T *array, uint arraySize, const T &key)
 Search the lower_bound in a sorted array of Value, in growing order (0, 1, 2.
template<class T >
uint searchLowerBound (const std::vector< T > &array, const T &key)
 Search the lower_bound in a sorted array of Value, in growing order (0, 1, 2.
static void fastClamp8 (sint &v)
 Clamp a sint in 0..255.
bool testWildCard (const char *strIn, const char *wildCard)
 return true if the string strIn verify the wildcard string wildCard.
bool testWildCard (const std::string &strIn, const std::string &wildCard)
void splitString (const std::string &str, const std::string &separator, std::vector< std::string > &retList)
 From a string with some separators, build a vector of string.
void splitUCString (const ucstring &ucstr, const ucstring &separator, std::vector< ucstring > &retList)
template<class T , class U >
bool strFindReplace (T &str, const T &strFind, const U &strReplace)
 In a string or ucstring, find a substr and replace it with an other. return true if replaced.
template<class T , class U >
bool strFindReplace (T &str, const char *strFind, const U &strReplace)
template<class T , class U >
void setFlags (T &dest, U mask, bool on)
void displayBitStream (const CBitMemStream &msg, sint beginbitpos, sint endbitpos, NLMISC::CLog *log=NLMISC::DebugLog)
 Display a part of a bitmemstream.
void readPNGData (png_structp png_ptr, png_bytep data, png_size_t length)
void writePNGData (png_structp png_ptr, png_bytep data, png_size_t length)
void setPNGWarning (png_struct *png_ptr, const char *message)
void setPNGError (png_struct *png_ptr, const char *message)
float frand (float mod)
 Return a float random inside the interval [0,mod].
sint fsgn (double f)
 Return -1 if f<0, 0 if f==0, 1 if f>1.
template<class T >
T sqr (const T &v)
 Return the square of a number.
template<class T , class U , class V >
void clamp (T &v, const U &min, const V &max)
 Force v to be inside the interval [min,max].
template<class T >
T minof (const T &a, const T &b, const T &c)
 MIN/MAX extended functions.
template<class T >
T minof (const T &a, const T &b, const T &c, const T &d)
template<class T >
T minof (const T &a, const T &b, const T &c, const T &d, const T &e)
template<class T >
T maxof (const T &a, const T &b, const T &c)
template<class T >
T maxof (const T &a, const T &b, const T &c, const T &d)
template<class T >
T maxof (const T &a, const T &b, const T &c, const T &d, const T &e)
template<class T >
void contReset (T &a)
 contReset take a container like std::vector or std::deque and put his size to 0 like clear() but free all buffers.
uint raiseToNextPowerOf2 (uint v)
 Return the value maximized to the next power of 2 of v.
uint getPowerOf2 (uint v)
 Return the power of 2 of v.
bool isPowerOf2 (sint32 v)
 Return true if the value is a power of 2.
float degToRad (float deg)
 Converts from degrees to radians.
float radToDeg (float rad)
 Converts from radians to degrees.
double isValidDouble (double v)
 Return true if double is a valid value (not inf nor nan).
std::string toLower (const std::string &str)
 Convert a string in lower case.
void toLower (char *str)
char toLower (const char ch)
std::string toUpper (const std::string &str)
 Convert a string in upper case.
void toUpper (char *str)
template<class T >
T trim (const T &str)
template<class T >
T trimRightWhiteSpaces (const T &str)
std::string & strlwr (std::string &str)
std::string strlwr (const std::string &str)
char * strlwr (char *str)
std::string & strupr (std::string &str)
std::string strupr (const std::string &str)
char * strupr (char *str)
int stricmp (const char *lhs, const char *rhs)
 Compare 2 C-Style strings without regard to case.
int strnicmp (const char *lhs, const char *rhs, size_t n)
sint nlstricmp (const char *lhs, const char *rhs)
sint nlstricmp (const std::string &lhs, const std::string &rhs)
sint nlstricmp (const std::string &lhs, const char *rhs)
sint nlstricmp (const char *lhs, const std::string &rhs)
int nlfseek64 (FILE *stream, sint64 offset, int origin)
 Signed 64 bit fseek.
sint64 nlftell64 (FILE *stream)
void nlSleep (uint32 ms)
 Portable Sleep() function that suspends the execution of the calling thread for a number of milliseconds.
uint getThreadId ()
 Returns Process Id (note: on Linux, Process Id is the same as the Thread Id).
std::string stringFromVector (const std::vector< uint8 > &v, bool limited=true)
 Returns a readable string from a vector of bytes. unprintable char are replaced by '?'.
sint64 atoiInt64 (const char *ident, sint64 base=10)
 Convert a string into an sint64 (same as atoi() function but for 64 bits intergers).
void itoaInt64 (sint64 number, char *str, sint64 base=10)
 Convert an sint64 into a string (same as itoa() function but for 64 bits intergers).
std::string bytesToHumanReadable (const std::string &bytes)
 Convert a number in bytes into a string that is easily readable by an human, for example 105123 -> "102kb".
std::string bytesToHumanReadable (uint64 bytes)
uint32 humanReadableToBytes (const std::string &str)
 Convert a human readable into a bytes, for example "102kb" -> 105123.
std::string secondsToHumanReadable (uint32 time)
 Convert a time into a string that is easily readable by an human, for example 3600 -> "1h".
uint32 fromHumanReadable (const std::string &str)
 Get a bytes or time in string format and convert it in seconds or bytes.
bool launchProgram (const std::string &programName, const std::string &arguments)
 This function executes a program in the background and returns instantly (used for example to launch services in AES).
bool killProgram (uint32 pid)
 This function kills a program using his pid (on unix, it uses the kill() POSIX function).
bool abortProgram (uint32 pid)
 This function kills a program using his pid with abort signal (on unix, it uses the kill() POSIX function).
template<class T >
void explode (const T &src, const T &sep, std::vector< T > &res, bool skipEmpty=false)
 Returns a string corresponding to the class T in string format.
void displayByteBits (uint8 b, uint nbits, sint beginpos, bool displayBegin, NLMISC::CLog *log)
 Display the bits (with 0 and 1) composing a byte (from right to left).
void displayDwordBits (uint32 b, uint nbits, sint beginpos, bool displayBegin, NLMISC::CLog *log)
 Display the bits (with 0 and 1) composing a number (uint32) (from right to left).
bool openURL (const char *url)
bool openDoc (const char *document)
float favoid0 (float x)
double davoid0 (double x)
template<class T >
T iavoid0 (T x)
void createDebug (const char *logPath=NULL, bool logInFile=true, bool eraseLastLog=false)
void destroyDebug ()
 Do not call this, unless you know what you're trying to do (it kills debug)!
void changeLogDirectory (const std::string &dir)
void enterBreakpoint (const char *message)
void setAssert (bool assert)
void beep (uint freq, uint duration)
void setCrashCallback (TCrashCallback crashCallback)
bool isCrashAlreadyReported ()
void setCrashAlreadyReported (bool state)
bool _assert_stop (bool &ignoreNextTime, sint line, const char *file, const char *funcName, const char *exp)
void _assertex_stop_0 (bool &ignoreNextTime, sint line, const char *file, const char *funcName, const char *exp)
bool _assertex_stop_1 (bool &ignoreNextTime)
void getCallStack (std::string &result, sint skipNFirst=0)
 Get the call stack and set it with result.
void getCallStackAndLog (std::string &result, sint skipNFirst=0)
 Get the call stack and the logs and set it with result.
template<class T , class U >
T safe_cast (U o)
 safe_cast<>: this is a function which nlassert() a dynamic_cast in Debug, and just do a static_cast in release.
template<class T , class U >
T type_cast (U o)
 type_cast<>: this is a function which nlassert() a dynamic_cast in Debug, and just do a static_cast in release.
void nlFatalError (const char *format,...)
 Never use this function (internal use only).
void nlError (const char *format,...)
 Never use this function but call the nlerror macro (internal use only).
int getLastError ()
 Return the last error code generated by a system call.
std::string formatErrorMessage (int errorCode)
 Return a readable text according to the error code submited.
NL_LIB_HANDLE nlLoadLibrary (const std::string &libName)
 Generic dynamic library loading function.
bool nlFreeLibrary (NL_LIB_HANDLE libHandle)
 Generic dynamic library unloading function.
void * nlGetSymbolAddress (NL_LIB_HANDLE libHandle, const std::string &symbolName)
 Generic dynamic library symbol address lookup function.
const CClassId EventKeyDownId (0x3c2643da, 0x43f802a1)
const CClassId EventKeyUpId (0x1e62e85, 0x68a35d46)
const CClassId EventCharId (0x552255fe, 0x75a2373f)
const CClassId EventActivateId (0x7da66b0a, 0x1ef74519)
const CClassId EventSetFocusId (0x17650fac, 0x19f85dde)
const CClassId EventDestroyWindowId (0x69be73fe, 0x4b07603b)
const CClassId EventMouseMoveId (0x3dd12fdb, 0x472f548b)
const CClassId EventMouseDownId (0x35b7878, 0x5d4a0f86)
const CClassId EventMouseUpId (0xcce1f7e, 0x7ed344d7)
const CClassId EventMouseDblClkId (0x55a94cb3, 0x3e641517)
const CClassId EventMouseWheelId (0x73ac4321, 0x4c273150)
const CClassId EventDisplayChangeId (0x1751559, 0x25b52b3c)
const CClassId EventIME (0x261f1ede, 0x1b0a6c3a)
void OptFastFloorBegin ()
void OptFastFloorEnd ()
sint OptFastFloor (float x)
float OptFastFractionnalPart (float x)
void OptFastFloorBegin24 ()
void OptFastFloorEnd24 ()
uint32 OptFastFloor24 (float x)
bool operator== (const CGameDeviceDesc &lhs, const CGameDeviceDesc &rhs)
 for devices comparison. The 'Connected' field is ignored.
bool operator!= (const CGameDeviceDesc &lhs, const CGameDeviceDesc &rhs)
const CClassId EventGDMouseMove (0x12142bc4, 0x43c73e74)
const CClassId EventGDButtonDownId (0x57141957, 0x3efb143a)
const CClassId EventGDButtonUpId (0x16105e06, 0x302536b2)
const CClassId EventGDAxisMovedId (0x073306, 0x41173626)
const CClassId EventGDSliderMovedId (0x68776586, 0x394a6916)
const CClassId EventGDPOVChanged (0x362851b9, 0x395c4d61)
CHashKeyMD5 getMD5 (const std::string &filename)
 MD5 High level routines Largely inspired from the RSA Data Security works.
CHashKeyMD5 getMD5 (const uint8 *buffer, uint32 size)
uint32 atoihex (const char *ident)
uint32 atoui (const char *ident)
bool operator== (const CPolygon2D &lhs, const CPolygon2D &rhs)
bool operator< (const CPolygon2D &lhs, const CPolygon2D &rhs)
TReportResult report (const std::string &title, const std::string &header, const std::string &subject, const std::string &body, bool enableCheckIgnore, uint debugButton, bool ignoreButton, sint quitButton, bool sendReportButton, bool &ignoreNextTime, const std::string &attachedFile="")
void setReportEmailFunction (void *emailFunction)
 call this in the main of your appli to enable email: setReportEmailFunction (sendEmail);
template<class U >
CRGBA blend (CRGBA c0, CRGBA c1, U blendFactor)
CRGBAF operator* (float f, const CRGBAF &c)
 Mul float operator.
template<class T >
bool operator== (const CRefPtr< T > &refPtr, T *ptr)
template<class T >
bool operator== (const CRefPtr< T > &leftRef, const CRefPtr< T > &rightRef)
CSString operator+ (char s0, const CSString &s1)
CSString operator+ (const char *s0, const CSString &s1)
CSString operator+ (const std::string &s0, const CSString &s1)
std::string addSlashR (std::string str)
std::string removeSlashR (std::string str)
sint smprintf (char *buffer, size_t count, const char *format,...)
 sMart sprintf function.
std::string toString (const char *format,...)
template<class T >
std::string toStringPtr (const T *val)
template<class T >
std::string toStringEnum (const T &val)
template<class T >
std::string toString (const T &obj)
 Template Object toString.
std::string toString (const uint8 &val)
std::string toString (const sint8 &val)
std::string toString (const uint16 &val)
std::string toString (const sint16 &val)
std::string toString (const uint32 &val)
std::string toString (const sint32 &val)
std::string toString (const uint64 &val)
std::string toString (const sint64 &val)
std::string toString (const long unsigned int &val)
std::string toString (const float &val)
std::string toString (const double &val)
std::string toString (const bool &val)
std::string toString (const std::string &val)
template<class T >
bool fromString (const std::string &str, T &obj)
bool fromString (const std::string &str, uint32 &val)
bool fromString (const std::string &str, sint32 &val)
bool fromString (const std::string &str, uint8 &val)
bool fromString (const std::string &str, sint8 &val)
bool fromString (const std::string &str, uint16 &val)
bool fromString (const std::string &str, sint16 &val)
bool fromString (const std::string &str, uint64 &val)
bool fromString (const std::string &str, sint64 &val)
bool fromString (const std::string &str, float &val)
bool fromString (const std::string &str, double &val)
bool fromString (const std::string &str, bool &val)
bool fromString (const std::string &str, std::string &val)
 NL_TRIVIAL_TYPE_TRAITS (bool)
 NL_TRIVIAL_TYPE_TRAITS (sint16)
 NL_TRIVIAL_TYPE_TRAITS (uint16)
 NL_TRIVIAL_TYPE_TRAITS (sint32)
 NL_TRIVIAL_TYPE_TRAITS (uint32)
 NL_TRIVIAL_TYPE_TRAITS (sint64)
 NL_TRIVIAL_TYPE_TRAITS (uint64)
 NL_TRIVIAL_TYPE_TRAITS (char)
 NL_TRIVIAL_TYPE_TRAITS (unsigned char)
 NL_TRIVIAL_TYPE_TRAITS (float)
 NL_TRIVIAL_TYPE_TRAITS (double)
 NL_TRIVIAL_TYPE_TRAITS (CVector)
 NL_TRIVIAL_TYPE_TRAITS (CRGBA)
ucstring toLower (const ucstring &str)
 Convert an unicode string in lower case.
void toLower (ucchar *str)
ucchar toLower (ucchar c)
ucstring toUpper (const ucstring &str)
 Convert an unicode string in upper case.
void toUpper (ucchar *str)
ucchar toUpper (ucchar c)
CUV operator* (float f, const CUV &uv)
CUV operator* (const CUV &uv, float f)
CUV blend (const CUV &uv0, const CUV &uv1, float lambda)
CVector blend (const CVector &v0, const CVector &v1, float lambda)
CVector2d operator* (double f, const CVector2d &v)
CVector2f operator* (float f, const CVector2f &v)
bool operator< (const CVector2f &lhs, const CVector2f &rhs)
CVector operator* (float f, const CVector &v)
CVectorD operator* (double f, const CVectorD &v)
TMouseButton getMouseButton (uint32 state)
TKey getKey (KeySym keysym)
void drawLine (float x0, float y0, float x1, float y1, vector< pair< sint, sint > > &result)
 NLMISC_SAFE_SINGLETON_IMPL (CAsyncFileManager)
 NLMISC_SAFE_SINGLETON_IMPL (CBigFile)
void blendFromui (NLMISC::CRGBA &c0, NLMISC::CRGBA &c1, uint coef)
uint32 blend (uint32 &n0, uint32 &n1, uint32 coef0)
template<class T >
void rotateCCW (const T *src, T *dst, uint srcWidth, uint srcHeight)
static uint32 wrap (sint32 value, uint32 range)
 NLMISC_SAFE_SINGLETON_IMPL (CCurrentCoTask)
 NLMISC_SAFE_SINGLETON_IMPL (CCommandRegistry)
 NLMISC_CATEGORISED_COMMAND (nel, help,"display help on a specific variable/commands or on all variables and commands","[<variable>|<command>]")
 NLMISC_CATEGORISED_COMMAND (nel, btohr,"Convert a bytes number into an human readable number","<int>")
 NLMISC_CATEGORISED_COMMAND (nel, hrtob,"Convert a human readable number into a bytes number","<hr>")
 NLMISC_CATEGORISED_COMMAND (nel, stohr,"Convert a second number into an human readable time","<int>")
 if (args.size()!=1) return false
 Commands.
log displayNL ("Sleeping during %d seconds", n)
 nlSleep (n *1000)
 NLMISC_CATEGORISED_COMMAND (nel, system,"Execute the command line using system() function call (wait until the end of the command)","<commandline>")
 NLMISC_CATEGORISED_COMMAND (nel, launchProgram,"Execute the command line using launcProgram() function call (launch in background task without waiting the end of the execution)","<programName> <arguments>")
 NLMISC_CATEGORISED_COMMAND (nel, killProgram,"kill a program given the pid","<pid>")
static bool DetectMMX (void)
static bool DetectSSE ()
static void initDebug2 (bool logInFile)
 NLMISC_SAFE_SINGLETON_IMPL (CInstanceCounterManager)
 NLMISC_CATEGORISED_COMMAND (nel, displayInstanceCounter,"display the instance counters","[<filter>]")
 NLMISC_CATEGORISED_COMMAND (nel, resetInstanceCounterDelta,"reset the delta value for instance counter","")
 NLMISC_CATEGORISED_COMMAND (nel, displayMemlog,"displays the last N line of the log in memory","[<NbLines>]")
 NLMISC_CATEGORISED_COMMAND (nel, resetFilters,"disable all filters on Nel loggers","[debug|info|warning|error|assert]")
 NLMISC_CATEGORISED_COMMAND (nel, addPositiveFilterDebug,"add a positive filter on DebugLog","<filterstr>")
 NLMISC_CATEGORISED_COMMAND (nel, addNegativeFilterDebug,"add a negative filter on DebugLog","<filterstr>")
 NLMISC_CATEGORISED_COMMAND (nel, removeFilterDebug,"remove a filter on DebugLog","[<filterstr>]")
 NLMISC_CATEGORISED_COMMAND (nel, displayFilterDebug,"display filter on DebugLog","")
 NLMISC_CATEGORISED_COMMAND (nel, addPositiveFilterInfo,"add a positive filter on InfoLog","<filterstr>")
 NLMISC_CATEGORISED_COMMAND (nel, addNegativeFilterInfo,"add a negative filter on InfoLog","<filterstr>")
 NLMISC_CATEGORISED_COMMAND (nel, removeFilterInfo,"remove a filter on InfoLog","[<filterstr>]")
 NLMISC_CATEGORISED_COMMAND (nel, displayFilterInfo,"display filter on InfoLog","[d|i|w|e]")
 NLMISC_CATEGORISED_COMMAND (nel, addPositiveFilterWarning,"add a positive filter on WarningLog","<filterstr>")
 NLMISC_CATEGORISED_COMMAND (nel, addNegativeFilterWarning,"add a negative filter on WarningLog","<filterstr>")
 NLMISC_CATEGORISED_COMMAND (nel, removeFilterWarning,"remove a filter on WarningLog","[<filterstr>]")
 NLMISC_CATEGORISED_COMMAND (nel, displayFilterWarning,"display filter on WarningLog","")
const string nlLibPrefix ("lib")
const string nlLibExt (".so")
 NLMISC_SAFE_SINGLETON_IMPL (CEntityIdTranslator)
void cbInvalidEntityNamesFilename (const std::string &invalidEntityNamesFilename)
 NLMISC_CATEGORISED_COMMAND (nel, findEIdByUser,"Find entity ids using the user name","<username>|<uid>")
 NLMISC_CATEGORISED_COMMAND (nel, findEIdByEntity,"Find entity id using the entity name","<entityname>|<eid>")
 NLMISC_CATEGORISED_COMMAND (nel, entityNameValid,"Tell if an entity name is valid or not using CEntityIdTranslator validation rulez","<entityname>")
 NLMISC_CATEGORISED_COMMAND (nel, playerInfo,"Get informations about a player or all players in CEntityIdTranslator","[<entityname>|<eid>|<username>|<uid>]")
static memcpyPtr findBestmemcpy ()
static TSynchronizedFileAccessLog IFileAccessLog ("IFileAccessLog")
 NLMISC_CATEGORISED_COMMAND (nel, iFileAccessLogStart,"Start file access logging","")
 NLMISC_CATEGORISED_COMMAND (nel, iFileAccessLogStop,"Stop file access logging","")
 NLMISC_CATEGORISED_COMMAND (nel, iFileAccessLogClear,"Clear file access logs","")
 NLMISC_CATEGORISED_COMMAND (nel, iFileAccessLogDisplay,"Display file access logs","")
void dummyToAvoidStupidCompilerWarning_game_device_events_cpp ()
 NLMISC_CATEGORISED_COMMAND (nel, displayMeasures,"display hierarchical timer","[TotalTime(=-2)|NoSort(=-3)|TotalTimeWithoutSons(=-4)|MeanTime(=-5)|NumVisits(=-6)|MaxTime(=-7)|MinTime(=-8)|MaxSession(=-9)] [depth]")
void xmlGenericErrorFuncRead (void *ctx, const char *msg,...)
CPlane operator* (const CPlane &p, const CMatrix &m)
static bool fromHex (char c, uint8 &x)
static void displayCallStack (CLog *log)
static void BuildHermiteVector (const NLMISC::CVector2f &P0, const NLMISC::CVector2f &P1, const NLMISC::CVector2f &T0, const NLMISC::CVector2f &T1, NLMISC::CVector2f &dest, float lambda)
 build some hermite spline value, with the given points and tangents
int xmlOutputWriteCallbackForNeL (void *context, const char *buffer, int len)
int xmlOutputCloseCallbackForNeL (void *)
void xmlGenericErrorFuncWrite (void *ctx, const char *msg,...)
CPThread CurrentThread (NULL, 0)
static void * ProxyFunc (void *arg)
 NLMISC_SAFE_SINGLETON_IMPL (CPath)
static void removeAllUnusedChar (string &str)
bool isdirectory (dirent *de)
bool isfile (dirent *de)
string getname (dirent *de)
static bool CopyMoveFile (const char *dest, const char *src, bool copyFile, bool failIfExists=false, IProgressCallback *progress=NULL)
static void ScanEdge (CPolygon2D::TRasterVect &outputVect, sint topY, const CVector2f &v1, const CVector2f &v2, bool rightEdge=true)
 ***************************************************************************************
static
CPolygon2D::TVec2fVect::const_iterator 
Next (const CPolygon2D::TVec2fVect::const_iterator &it, const CPolygon2D::TVec2fVect &cont)
static
CPolygon2D::TVec2fVect::const_iterator 
Prev (const CPolygon2D::TVec2fVect::const_iterator &it, const CPolygon2D::TVec2fVect &cont)
static void ScanOuterEdgeRight (CPolygon2D::TRaster *r, float x1, float y1, float x2, float y2, sint minY)
static void ScanOuterEdgeLeft (CPolygon2D::TRaster *r, float x1, float y1, float x2, float y2, sint minY)
static void ScanInnerEdge (CPolygon2D::TRaster *r, float x1, float y1, float x2, float y2, sint minY, bool rightEdge)
static bool testSegmentIntersection (const CVector2f &a, const CVector2f &b, const CVector2f &c, const CVector2f &d)
void report ()
static float HLSValue (float h, float v1, float v2)
 Used by buildFromHLS.
void dummy_to_avoid_stupid_4768_smart_ptr_cpp ()
static string getCpuInfo (const string &colname)
static uint64 getSystemMemory (const string &colname)
static char * skipWS (const char *p)
static char * skipToken (const char *p)
 NLMISC_CATEGORISED_DYNVARIABLE (nel, string, AvailableHDSpace,"Hard drive space left in bytes")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, string, AvailablePhysicalMemory,"Physical memory available on this computer in bytes")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, string, TotalPhysicalMemory,"Total physical memory on this computer in bytes")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, string, ProcessUsedMemory,"Memory used by this process in bytes")
 NLMISC_CATEGORISED_DYNVARIABLE (nel, string, OS,"OS used")
int toLowerUpperCompare (const void *arg1, const void *arg2)
void cbVarChanged (CConfigFile::CVar &cvar)
 NL_INSTANCE_COUNTER_IMPL (CWordsDictionary)
 NLMISC_SAFE_SINGLETON_IMPL (CXMLPack)
Quaternions functions.



template<class T >
CQuatT< Toperator* (T f, const CQuatT< T > &o)
 f*quat operator

Variables

const uint32 BF_ALWAYS_OPENED = 0x00000001
 Big file management.
const uint32 BF_CACHE_FILE_ON_OPEN = 0x00000002
const char * SerialTypeToCStr [TBMSSerialInfo::NbSerialTypes] = { "Bool ", "Ui32N", "Ui64N", "Float", "Btfld", "Buffr" }
const uint32 DDS_HEADER = NL_MAKEFOURCC('D', 'D', 'S', ' ')
const uint32 DXT_HEADER = NL_MAKEFOURCC('D','X', 'T', '\0')
const uint32 PNG_HEADER = NL_MAKEFOURCC(0x89, 'P', 'N', 'G')
const uint32 JPG_HEADER = NL_MAKEFOURCC(0xff, 0xd8, 0xff, 0xe0)
const uint8 MAX_MIPMAP = 16
bool NL3D_BlockMemoryAssertOnPurge = true
 See CBlockMemory::Purge.
const unsigned int NL_TASK_STACK_SIZE = 8*1024
const double Pi = 3.1415926535897932384626433832795
 Pi constant in double format.
CImposterLog ErrorLog
CImposterLog WarningLog
CImposterLog InfoLog
CImposterLog DebugLog
CImposterLog AssertLog
CMemDisplayerDefaultMemDisplayer = NULL
CMsgBoxDisplayerDefaultMsgBoxDisplayer = NULL
bool DisableNLDebug = false
bool DebugNeedAssert
 Allow to verify an object was accessed before its destructor call.
bool NoAssert
const uint OptFastFloorCWStackSize = 10
int OptFastFloorCWStack [OptFastFloorCWStackSize]
intOptFastFloorCWStackPtr = OptFastFloorCWStack
intOptFastFloorCWStackEnd = OptFastFloorCWStack + OptFastFloorCWStackSize
static const char SEPARATOR = ' '
static const int SEP_SIZE = 1
const double QuatEpsilon = 0.000001
const int MaxCStringSize = 2048
NLMISC::IStreamJPGStream = NULL
static const uint32 JPGBufferSize = 1000
char JPGBuffer [JPGBufferSize]
bool TempMaxVerboseResample = false
sint32 n = atoi (args[0].c_str())
return true
bool HasMMX = DetectMMX()
bool HasSSE = DetectSSE()
NLMISC::CVariablePtr< bool_DisableNLDebug ("nel","DisableNLDebug","Disables generation and output of nldebug logs (no code associated with the log generation is executed)",&DisableNLDebug, true)
static CStdDisplayersd = NULL
static CFileDisplayerfd = NULL
static TCrashCallback CrashCallback = NULL
static bool CrashAlreadyReported = false
static const char * LogTypeToString [][8]
static const CStringConversion
< TKey >::CPair 
stringTable []
static CStringConversion< TKeyKeyConversion (stringTable, sizeof(stringTable)/sizeof(stringTable[0]), KeyCount)
static bool IFileAccessLoggingEnabled = false
static uint64 IFileAccessLogStartTime = 0
static const float NL3D_OO255 = 1.0f / 255
static CRandomGrid3D NL3D_RandomGrid3D
CPProcess CurrentProcess
string BasePathgetPathContent
static vector< CFileEntryFileToCheck
static TEmailFunction EmailFunction = NULL
map< TSharedMemId, intSharedMemIdsToShmids
static const uint32 MaxUint32 = ~0u
static const uint32 MaxUint32LastDigit = MaxUint32-(MaxUint32/10)*10
static const uint32 MaxUint32PreLastDigit = (MaxUint32/10)
static const uint32 MaxNegSint32 = ~0u/2+1
static const uint32 MaxNegSint32LastDigit = MaxNegSint32-(MaxNegSint32/10)*10
static const uint32 MaxNegSint32PreLastDigit = (MaxNegSint32/10)
static const uint32 MaxPosSint32 = ~0u/2
static const uint32 MaxPosSint32LastDigit = MaxPosSint32-(MaxPosSint32/10)*10
static const uint32 MaxPosSint32PreLastDigit = (MaxPosSint32/10)
static const uint64 MaxUint64 = (uint64)0-(uint64)1
static const uint64 MaxUint64LastDigit = MaxUint64-(MaxUint64/10)*10
static const uint64 MaxUint64PreLastDigit = (MaxUint64/10)
static const uint64 MaxNegSint64 = ((uint64)0-(uint64)1)/2+1
static const uint64 MaxNegSint64LastDigit = MaxNegSint64-(MaxNegSint64/10)*10
static const uint64 MaxNegSint64PreLastDigit = (MaxNegSint64/10)
static const uint64 MaxPosSint64 = ((uint64)0-(uint64)1)/2
static const uint64 MaxPosSint64LastDigit = MaxPosSint64-(MaxPosSint64/10)*10
static const uint64 MaxPosSint64PreLastDigit = (MaxPosSint64/10)
static const ucchar UnicodeUpperToLower []
static const ucchar UnicodeLowerToUpper []
const uint32 MaxLineSize = 1*1024



typedef void(* TInitLibraryFunc )(INelContext &applicationContext)
 Function type for library entry point.
void initNelLibrary (CLibrary &lib)
 helper function to init newly loaded nel library

Detailed Description

This namespace contains all miscellaneous classes used by other modules.


Typedef Documentation

typedef std::vector<CSString> NLMISC::CVectorSString

Definition at line 27 of file sstring.h.

Definition at line 37 of file event_server.h.

typedef void*(* NLMISC::memcpyPtr)(void *dts, const void *src, size_t nbytes)

Definition at line 223 of file fast_mem.cpp.

Definition at line 151 of file bit_mem_stream.h.

Definition at line 194 of file polygon.cpp.

Definition at line 42 of file time_nl.h.

typedef std::string(* NLMISC::TCrashCallback)()

Definition at line 110 of file debug.h.

Definition at line 50 of file game_device.h.

typedef bool(* NLMISC::TEmailFunction)(const std::string &smtpServer, const std::string &from, const std::string &to, const std::string &subject, const std::string &body, const std::string &attachedFile, bool onlyCheck)

Definition at line 51 of file report.cpp.

typedef CHashMap<std::string,TFileAccessTimes> NLMISC::TFileAccessLog

Definition at line 44 of file file.cpp.

typedef std::list<uint64> NLMISC::TFileAccessTimes

Definition at line 43 of file file.cpp.

Definition at line 40 of file time_nl.h.

New time types.

Definition at line 39 of file time_nl.h.

typedef void(* NLMISC::TInitLibraryFunc)(INelContext &applicationContext)

Function type for library entry point.

Definition at line 280 of file app_context.h.

Definition at line 41 of file time_nl.h.

Definition at line 36 of file stop_watch.h.

typedef key_t NLMISC::TSharedMemId

Definition at line 39 of file shared_memory.h.

Definition at line 135 of file string_mapper.h.

typedef const std::string* NLMISC::TStringId

Definition at line 44 of file string_mapper.h.

typedef NLMISC::CSynchronized<TFileAccessLog> NLMISC::TSynchronizedFileAccessLog

Definition at line 45 of file file.cpp.

Definition at line 35 of file stop_watch.h.

Definition at line 46 of file time_nl.h.

Old time type.

Definition at line 45 of file time_nl.h.


Enumeration Type Documentation

Enumerator:
Key0 
Key1 
Key2 
Key3 
Key4 
Key5 
Key6 
Key7 
Key8 
Key9 
KeyA 
KeyB 
KeyC 
KeyD 
KeyE 
KeyF 
KeyG 
KeyH 
KeyI 
KeyJ 
KeyK 
KeyL 
KeyM 
KeyN 
KeyO 
KeyP 
KeyQ 
KeyR 
KeyS 
KeyT 
KeyU 
KeyV 
KeyW 
KeyX 
KeyY 
KeyZ 
KeyLBUTTON 
KeyRBUTTON 
KeyCANCEL 
KeyMBUTTON 
KeyBACK 
KeyTAB 
KeyCLEAR 
KeyRETURN 
KeySHIFT 
KeyCONTROL 
KeyMENU 
KeyPAUSE 
KeyCAPITAL 
KeyKANA 
KeyHANGEUL 
KeyHANGUL 
KeyJUNJA 
KeyFINAL 
KeyHANJA 
KeyKANJI 
KeyESCAPE 
KeyCONVERT 
KeyNONCONVERT 
KeyACCEPT 
KeyMODECHANGE 
KeySPACE 
KeyPRIOR 
KeyNEXT 
KeyEND 
KeyHOME 
KeyLEFT 
KeyUP 
KeyRIGHT 
KeyDOWN 
KeySELECT 
KeyPRINT 
KeyEXECUTE 
KeySNAPSHOT 
KeyINSERT 
KeyDELETE 
KeyHELP 
KeyLWIN 
KeyRWIN 
KeyAPPS 
KeyNUMPAD0 
KeyNUMPAD1 
KeyNUMPAD2 
KeyNUMPAD3 
KeyNUMPAD4 
KeyNUMPAD5 
KeyNUMPAD6 
KeyNUMPAD7 
KeyNUMPAD8 
KeyNUMPAD9 
KeyMULTIPLY 
KeyADD 
KeySEPARATOR 
KeySUBTRACT 
KeyDECIMAL 
KeyDIVIDE 
KeyF1 
KeyF2 
KeyF3 
KeyF4 
KeyF5 
KeyF6 
KeyF7 
KeyF8 
KeyF9 
KeyF10 
KeyF11 
KeyF12 
KeyF13 
KeyF14 
KeyF15 
KeyF16 
KeyF17 
KeyF18 
KeyF19 
KeyF20 
KeyF21 
KeyF22 
KeyF23 
KeyF24 
KeyNUMLOCK 
KeySCROLL 
KeyLSHIFT 
KeyRSHIFT 
KeyLCONTROL 
KeyRCONTROL 
KeyLMENU 
KeyRMENU 
KeySEMICOLON 
KeyEQUALS 
KeyCOMMA 
KeyDASH 
KeyPERIOD 
KeySLASH 
KeyTILDE 
KeyLBRACKET 
KeyBACKSLASH 
KeyRBRACKET 
KeyAPOSTROPHE 
KeyPARAGRAPH 
KeyOEM_102 
KeyPROCESSKEY 
KeyATTN 
KeyCRSEL 
KeyEXSEL 
KeyEREOF 
KeyPLAY 
KeyZOOM 
KeyNONAME 
KeyPA1 
KeyOEM_CLEAR 
KeyCount 

Definition at line 88 of file events.h.

Enumerator:
noKeyButton 
ctrlKeyButton 
shiftKeyButton 
altKeyButton 

Definition at line 255 of file events.h.

Enumerator:
noButton 
leftButton 
middleButton 
rightButton 
ctrlButton 
shiftButton 
altButton 

Definition at line 244 of file events.h.

Display a custom message box.

Parameters:
title set the title of the report. If empty, it'll display "NeL report".
header message displayed before the edit text box. If empty, it displays the default message.
body message displayed in the edit text box. This string will be sent by email.
debugButton 0 for disabling it, 1 for enable with default behaviors (generate a breakpoint), 2 for enable with no behavior
Returns:
the button clicked or error
Enumerator:
ReportDebug 
ReportIgnore 
ReportQuit 
ReportError 

Definition at line 44 of file report.h.


Function Documentation

bool NLMISC::_assert_stop ( bool ignoreNextTime,
sint  line,
const char *  file,
const char *  funcName,
const char *  exp 
)

Definition at line 292 of file debug.cpp.

References _assertex_stop_0(), and _assertex_stop_1().

void NLMISC::_assertex_stop_0 ( bool ignoreNextTime,
sint  line,
const char *  file,
const char *  funcName,
const char *  exp 
)
bool NLMISC::_assertex_stop_1 ( bool ignoreNextTime  ) 
bool NLMISC::abortProgram ( uint32  pid  ) 

This function kills a program using his pid with abort signal (on unix, it uses the kill() POSIX function).

Definition at line 589 of file common.cpp.

References nlwarning.

string NLMISC::addSlashR ( std::string  str  ) 

Definition at line 33 of file string_common.cpp.

uint32 NLMISC::atoihex ( const char *  ident  )  [inline]

Definition at line 585 of file mem_stream.h.

Referenced by NLMISC::CMemStream::serialHex().

sint64 NLMISC::atoiInt64 ( const char *  ident,
sint64  base = 10 
)
uint32 NLMISC::atoui ( const char *  ident  )  [inline]

Definition at line 483 of file i_xml.cpp.

Referenced by NLMISC::CIXml::serial(), and NLMISC::CMemStream::serial().

void NLMISC::beep ( uint  freq,
uint  duration 
)

Definition at line 1236 of file debug.cpp.

Referenced by NLNET::IService::main().

uint32 NLMISC::blend ( uint32 n0,
uint32 n1,
uint32  coef0 
)
CVector NLMISC::blend ( const CVector &  v0,
const CVector &  v1,
float  lambda 
) [inline]

Definition at line 147 of file vector.h.

References NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z.

CUV NLMISC::blend ( const CUV &  uv0,
const CUV &  uv1,
float  lambda 
) [inline]

Definition at line 96 of file uv.h.

References NLMISC::CUV::U, and NLMISC::CUV::V.

template<class U >
CRGBA NLMISC::blend ( CRGBA  c0,
CRGBA  c1,
blendFactor 
) [inline]

Definition at line 463 of file rgba.h.

References NLMISC::CRGBA::blendFromui().

template<class T , class U >
T NLMISC::blend ( const T v0,
const T v1,
const U &  blendFactor 
) [inline]
void NLMISC::blendFromui ( NLMISC::CRGBA c0,
NLMISC::CRGBA c1,
uint  coef 
)
static void NLMISC::BuildHermiteVector ( const NLMISC::CVector2f P0,
const NLMISC::CVector2f P1,
const NLMISC::CVector2f T0,
const NLMISC::CVector2f T1,
NLMISC::CVector2f dest,
float  lambda 
) [inline, static]

build some hermite spline value, with the given points and tangents

just avoid some ctor calls here...

Definition at line 31 of file mouse_smoother.cpp.

References NLMISC::CVector2f::set(), NLMISC::CVector2f::x, and NLMISC::CVector2f::y.

Referenced by NLMISC::CMouseSmoother::samplePos().

string NLMISC::bytesToHumanReadable ( uint64  bytes  ) 

Definition at line 333 of file common.cpp.

References NL_I64, and toString().

string NLMISC::bytesToHumanReadable ( const std::string &  bytes  ) 

Convert a number in bytes into a string that is easily readable by an human, for example 105123 -> "102kb".

Definition at line 328 of file common.cpp.

References atoiInt64().

Referenced by NLMISC::CSystemInfo::availableHDSpace(), NLMISC_CATEGORISED_COMMAND(), and NLMISC_CATEGORISED_DYNVARIABLE().

void NLMISC::cbInvalidEntityNamesFilename ( const std::string &  invalidEntityNamesFilename  ) 

Definition at line 432 of file eid_translator.cpp.

References NLMISC::CPath::lookup(), and nlwarning.

void NLMISC::cbVarChanged ( CConfigFile::CVar cvar  ) 
void NLMISC::changeLogDirectory ( const std::string &  dir  ) 
template<class T , class U , class V >
void NLMISC::clamp ( T v,
const U &  min,
const V &  max 
) [inline]

Force v to be inside the interval [min,max].

Warning: implicit cast are made if T,U or V are different.

Definition at line 128 of file common.h.

Referenced by NL3D::CVisualCollisionMesh::CStaticGrid::add(), NL3D::CLodCharacterShape::addAnim(), NL3D::CQuadGridClipCluster::addModel(), NLSOUND::CBackgroundSoundManager::addSound(), NL3D::CPackedZone32::allocVertex(), NL3D::CPatch::appendTileLightInfluences(), NL3D::CMeshMRMSkinnedGeom::applyGeomorphWithVBHardPtr(), NL3D::CMeshMRMGeom::applyGeomorphWithVBHardPtr(), NL3D::CMRMBuilder::attToColor(), NL3D::CMeshVPWindTree::begin(), NL3D::CMeshVPWindTree::beginMBRInstance(), NL3D::CTextureFile::buildBitmapFromFile(), NLMISC::CRGBA::buildFromHLS(), NL3D::CZoneLighter::calcSkyContribution(), NLMISC::CVectorD::cartesianToSpheric(), NLMISC::CVector::cartesianToSpheric(), NL3D::CFastHLSModifier::CFastHLSModifier(), NL3D::CQuadGridClipClusterQTreeNode::clip(), NL3D::CDriverGL::clipRect(), NL3D::CDriverD3D::clipRect(), NL3D::CPatch::computeDisplaceRawInteger(), NL3D::CPatch::computeGeomorphAlphaFar1VertexListVB(), NL3D::CTessVertex::computeGeomPos(), NL3D::CPointLight::computeLinearAttenuation(), NLSOUND::ISource::computeManualRolloff(), NLSOUND::ISource::computeManualRollOff(), NL3D::CLightingManager::computeModelLightContributions(), NL3D::CLoadBalancingGroup::computeRatioAndSmooth(), NL3D::CPSParticle::computeSrcStep(), NL3D::CPatch::computeTileLightmapPixelAutomatic(), NL3D::CFastHLSModifier::convertRGBABitmap(), NLGEORGES::CFormElm::convertValue(), NL3D::copyToValue(), NL3D::CRadixSort< T >::CRadixSort(), NL3D::CTileLumel::createUncompressed(), NL3D::CTextureEmboss::doGenerate(), NLPACS::CGlobalRetriever::doMove(), NL3D::CScene::endPartRender(), NLMISC::CNoiseColorGradient::eval(), CTrackKeyFramerTCB< CKeyTCBQuat, NLMISC::CAngleAxis >::evalKey(), CTrackKeyFramerTCB< CKeyT, T >::evalKey(), NL3D::CTrackKeyFramerLinear< CKeyRGBA, NLMISC::CRGBA >::evalKey(), NL3D::CTrackKeyFramerLinear< CKeyQuat, CQuat >::evalKey(), NL3D::CTrackKeyFramerLinear< CKeyFloat, float >::evalKey(), CTrackKeyFramerBezier< CKeyBezierQuat, CQuat >::evalKey(), CTrackKeyFramerBezier< CKeyT, T >::evalKey(), NL3D::CTrackSampledQuatSmallHeader::evalTime(), NL3D::CTrackSampledCommon::evalTime(), NL3D::CTargetAnimCtrl::execute(), NL3D::fastClamp01(), fastClamp8(), NL3D::CDriverGL::forceTextureResize(), NL3D::CDriverD3D::forceTextureResize(), NL3D::CPatchDLMContext::generate(), NL3D::CPatch::generateTileVegetable(), NLSOUND::CClusteredSound::getAABoxNearestPos(), NL3D::CLodCharacterShape::getAnimKey(), NLMISC::CBitmap::getColorInterp(), NL3D::CMRMLevelDetail::getLevelDetailFromPolyCount(), NL3D::CAnimationPlaylist::getLocalTime(), NL3D::CPatch::getLumel(), NL3D::CZoneLighter::getMaxPhi(), NL3D::CDriverGL::getSpecularCubeMap(), NL3D::CSurfaceLightGrid::getStaticLightSetup(), NL3D::CPatch::getTesselatedPos(), NL3D::CZoneLighter::getTexture(), NL3D::CPatch::getTileElement(), NL3D::CPSFloatCurveFunctor::getValue(), NL3D::CViewport::init(), NL3D::CTessFacePriorityList::init(), NL3D::CCameraCol::intersectRay(), NL3D::CZoneLighter::lightWater(), NLSOUND::CBackgroundSoundManager::loadSoundsFromPrimitives(), NL3D::CCameraCol::minimizeDistanceAgainstTri(), NL3D::CQuadGridClipClusterQTreeNode::noFrustumClip(), NL3D::NormalizeDsDt(), NL3D::NormalizeDsDtAsRGBA(), NL3D::CInstanceLighter::CPredPointLightToPoint::operator()(), NL3D::CQuatPack::pack(), NL3D::CVector3s::pack(), NL3D::CZoneLighter::processCalc(), NL3D::CShadowMap::processFades(), NL3D::CZoneLighter::processZonePointLightRT(), NLPACS::CPrimitiveWorldImage::reaction(), NLLIGO::IPrimitive::read(), ReadColor(), NL3D::CPSLocated::removeOldParticles(), NL3D::CVegetableManager::render(), NL3D::CShadowMapManager::renderGenerate(), NL3D::CShadowMapManager::renderProject(), RenderTriangle(), NLMISC::CMouseSmoother::samplePos(), NL3D::CSegRemanence::samplePos(), NL3D::CVisualCollisionMesh::CStaticGrid::select(), NL3D::CPatchUVLocator::selectPatch(), NL3D::UWaterHeightMapManager::setBlendFactor(), NLSOUND::CListenerFMod::setDopplerFactor(), NLSOUND::CReverbEffectXAudio2::setEnvironment(), NLSOUND::CSourceCommon::setGain(), NLSOUND::CSourceFMod::setGain(), NLSOUND::CSoundDriverFMod::setGain(), NLSOUND::CSourceDSound::setGain(), NL3D::CVegetableManager::setGlobalDensity(), NL3D::CParticleSystem::setGlobalValue(), NL3D::CLightingManager::setLightTransitionThreshold(), NL3D::CParticleSystem::setMaxDistLODBias(), NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::setNormal(), NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::setPos(), NLSOUND::CSourceCommon::setRelativeGain(), NLSOUND::CListenerFMod::setRolloffFactor(), NLSOUND::CListenerDSound::setRolloffFactor(), NL3D::CTransform::setShadowMapDirectionZThreshold(), NL3D::CVisualCollisionManager::setSunContributionPower(), NL3D::CDriverD3D::setupMaterial(), NL3D::CDriverGL::setupScissor(), NL3D::CDriverD3D::setupScissor(), NL3D::CPointLight::setupSpotAngle(), NL3D::CLandscape::setupStaticLight(), NL3D::CDriverGL::setupTextureEx(), NL3D::CDriverGL::setupViewport(), NL3D::CDriverD3D::setupViewport(), NL3D::CParticleSystem::setUserParam(), NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::setUV(), NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::setWeight(), NL3D::CVegetableManager::setWind(), NL3D::CPSLight::show(), NL3D::CParticleSystem::step(), NL3D::CSkeletonModel::traverseAnimDetail(), NL3D::CFlareModel::traverseRender(), NLSOUND::CClusteredSound::update(), NL3D::CMeshMorpher::update(), NL3D::CAnimatedMaterial::update(), NLSOUND::CBackgroundSoundManager::updateBackgroundStatus(), NL3D::CParticleSystem::updateColor(), NL3D::CPSRibbonBase::updateLOD(), NL3D::CParticleSystem::updateLODRatio(), NL3D::CMeshMorpher::updateSkinned(), NL3D::CDriverGL::uploadTexture(), and NL3D::CDriverD3D::uploadTexture().

template<class T , class U >
T NLMISC::computeBilinear ( const T v0,
const T v1,
const T v2,
const T v3,
const U &  s,
const U &  t 
) [inline]

bilinear of 4 values v3 v2 +-----+ | | | | +-----+ v0 v1

T ^ | | +---> S

Definition at line 81 of file algo.h.

template<class T >
void NLMISC::contReset ( T a  )  [inline]

contReset take a container like std::vector or std::deque and put his size to 0 like clear() but free all buffers.

This function is useful because resize(), clear(), erase() or reserve() methods never realloc when the array size come down.

Parameters:
a is the container to reset.

Definition at line 154 of file common.h.

Referenced by NLMISC::CBitmap::alphaLuminanceToAlpha(), NLMISC::CBitmap::alphaLuminanceToLuminance(), NL3D::CAnimation::applyAnimHeaderCompression(), NL3D::CMeshGeom::bkupOriginalSkinVertices(), NLPACS::CEdgeQuad::build(), NLPACS::CChainQuad::build(), NL3D::CStaticQuadGrid< T >::build(), NL3D::CAnimationSet::buildChannelNameFromMap(), NL3D::CLodCharacterShape::buildMesh(), NL3D::CIGSurfaceLightBuild::buildPLDebugMesh(), NL3D::CMeshGeom::buildShadowSkin(), NL3D::CMeshMRMGeom::CLod::buildSkinVertexBlocks(), NL3D::CIGSurfaceLightBuild::buildSunDebugMesh(), NLPACS::CLocalRetriever::clear(), NLPACS::CFaceGrid::clear(), NLPACS::CExteriorMesh::clear(), NLPACS::CChainQuad::clear(), NLMISC::CStaticStringMapper::clear(), NL3D::CLinearEquation::clear(), NL3D::CRawSkinnedNormalCache::clearArrays(), NL3D::CRawSkinNormalCache::clearArrays(), NL3D::CPatch::clearTessBlocks(), NL3D::CLodCharacterShapeBank::compile(), NL3D::CLodCharacterManager::compile(), NL3D::CCubeGrid< TCell >::compile(), NL3D::CZoneLighter::computeTileFlagsForPositionTowardWater(), NL3D::CIndexBuffer::deleteAllIndexes(), NL3D::CVertexBuffer::deleteAllVertices(), NL3D::CMeshBaseInstance::enableAsyncTextureMode(), NL3D::CDriverD3D::endProfileIBLock(), NL3D::CDriverGL::endProfileVBHardLock(), NL3D::CDriverD3D::endProfileVBHardLock(), NL3D::CTileFarBank::CTileFar::erasePixels(), NL3D::CPatch::generateTileVegetable(), NL3D::CMeshMRMGeom::loadHeader(), NLMISC::CSheetId::loadSheetId(), NL3D::CVertexBufferHardARB::lock(), NL3D::CVertexBufferHardGLMapObjectATI::lock(), NL3D::CZoneLighter::makeQuadGridFromWaterShapes(), NLMISC::CStaticStringMapper::memoryCompress(), NLMISC::CFileContainer::memoryCompress(), NLMISC::CStaticStringMapper::memoryUncompress(), NLMISC::CFileContainer::memoryUncompress(), NL3D::CPSRibbonBase::motionTypeChanged(), NL3D::CAnimationOptimizer::optimize(), NL3D::UDriver::purgeMemory(), NL3D::CLodCharacterManager::releaseInstance(), NLMISC::CBitmap::releaseMipMaps(), NL3D::CPSLocated::releaseParametricInfos(), NL3D::CMeshBlockManager::releaseVBHeaps(), NLMISC::CBitmap::resample(), NLMISC::CBitmap::reset(), NL3D::CLodCharacterShapeBank::reset(), NL3D::CLodCharacterManager::reset(), NL3D::CHLSTextureManager::reset(), NL3D::CHLSTextureBank::reset(), NL3D::CHLSColorTexture::reset(), NLMISC::CHTimer::CNode::reset(), NLMISC::CBitmap::resizeMipMap(), NLMISC::CBitmap::rgbaToAlpha(), NLMISC::CBitmap::rgbaToAlphaLuminance(), NLMISC::CBitmap::rgbaToLuminance(), NLMISC::CBitmap::rot90CCW(), NLMISC::CBitmap::rot90CW(), NLPACS::CEdgeQuad::serial(), NLPACS::CChainQuad::serial(), NL3D::CMeshMRMSkinnedGeom::serial(), NLMISC::CObjectVector< sint8, false >::serial(), NLMISC::CBitMemStream::serialCont(), NLMISC::IStream::serialVector(), NLMISC::IStream::serialVectorPolyPtr(), NLMISC::IStream::serialVectorPtr(), NL3D::CVertexBuffer::setLocation(), NL3D::CIndexBuffer::setLocation(), NL3D::CRenderTrav::setupTransparencySorting(), NL3D::CCluster::unlinkSons(), and NL3D::CMeshMRMGeom::unloadNextLod().

static bool NLMISC::CopyMoveFile ( const char *  dest,
const char *  src,
bool  copyFile,
bool  failIfExists = false,
IProgressCallback *  progress = NULL 
) [static]
void NLMISC::createDebug ( const char *  logPath = NULL,
bool  logInFile = true,
bool  eraseLastLog = false 
)
CPThread NLMISC::CurrentThread ( NULL  ,
 
)
double NLMISC::davoid0 ( double  x  )  [inline]

Definition at line 631 of file common.h.

float NLMISC::degToRad ( float  deg  )  [inline]

Converts from degrees to radians.

Definition at line 181 of file common.h.

References Pi.

Referenced by NLSOUND::CSourceAL::getCone().

void NLMISC::destroyDebug (  ) 
static bool NLMISC::DetectMMX ( void   )  [static]

Definition at line 882 of file system_info.cpp.

References NLMISC::CSystemInfo::hasCPUID().

static bool NLMISC::DetectSSE (  )  [static]

Definition at line 897 of file system_info.cpp.

References NLMISC::CSystemInfo::hasCPUID(), and nlunreferenced.

void NLMISC::displayBitStream ( const CBitMemStream &  msg,
sint  beginbitpos,
sint  endbitpos,
NLMISC::CLog log = NLMISC::DebugLog 
)

Display a part of a bitmemstream.

Definition at line 707 of file bit_mem_stream.cpp.

References NLMISC::CMemStream::buffer(), displayByteBits(), and nlinfo.

Referenced by NLMISC::CBitMemStream::displayLastBits().

void NLMISC::displayByteBits ( uint8  b,
uint  nbits,
sint  beginpos,
bool  displayBegin,
NLMISC::CLog log 
)

Display the bits (with 0 and 1) composing a byte (from right to left).

Definition at line 744 of file common.cpp.

References NLMISC::CLog::displayRawNL().

Referenced by displayBitStream().

static void NLMISC::displayCallStack ( CLog *  log  )  [static]

Definition at line 327 of file mem_displayer.cpp.

References NLMISC::CLog::displayNL().

Referenced by NLMISC::CMemDisplayer::write().

void NLMISC::displayDwordBits ( uint32  b,
uint  nbits,
sint  beginpos,
bool  displayBegin,
NLMISC::CLog log 
)

Display the bits (with 0 and 1) composing a number (uint32) (from right to left).

Definition at line 770 of file common.cpp.

References NLMISC::CLog::displayRawNL().

log NLMISC::displayNL ( "Sleeping during %d seconds"  ,
 
)
void NLMISC::drawFullLine ( float  x0,
float  y0,
float  x1,
float  y1,
std::vector< std::pair< sint, sint > > &  result 
)

Select all points crossed by the line [(x0,y0) ; (x1,y1)] Not the same than brensenham.

Definition at line 160 of file algo.cpp.

Referenced by draw2dLine().

void NLMISC::drawLine ( float  x0,
float  y0,
float  x1,
float  y1,
vector< pair< sint, sint > > &  result 
)

Definition at line 290 of file algo.cpp.

void NLMISC::drawLine ( float  x0,
float  y0,
float  x1,
float  y1,
std::vector< std::pair< sint, sint > > &  result 
)
void NLMISC::dummy_to_avoid_stupid_4768_smart_ptr_cpp (  ) 

Definition at line 38 of file smart_ptr.cpp.

void NLMISC::dummyToAvoidStupidCompilerWarning_game_device_events_cpp (  ) 

Definition at line 31 of file game_device_events.cpp.

void NLMISC::enterBreakpoint ( const char *  message  ) 
const CClassId NLMISC::EventActivateId ( 0x7da66b0a  ,
0x1ef74519   
)
const CClassId NLMISC::EventCharId ( 0x552255fe  ,
0x75a2373f   
)
const CClassId NLMISC::EventDestroyWindowId ( 0x69be73fe  ,
0x4b07603b   
)
const CClassId NLMISC::EventDisplayChangeId ( 0x1751559  ,
0x25b52b3c   
)
const CClassId NLMISC::EventGDAxisMovedId ( 0x073306  ,
0x41173626   
)
const CClassId NLMISC::EventGDButtonDownId ( 0x57141957  ,
0x3efb143a   
)
const CClassId NLMISC::EventGDButtonUpId ( 0x16105e06  ,
0x302536b2   
)
const CClassId NLMISC::EventGDMouseMove ( 0x12142bc4  ,
0x43c73e74   
)
const CClassId NLMISC::EventGDPOVChanged ( 0x362851b9  ,
0x395c4d61   
)
const CClassId NLMISC::EventGDSliderMovedId ( 0x68776586  ,
0x394a6916   
)
const CClassId NLMISC::EventIME ( 0x261f1ede  ,
0x1b0a6c3a   
)
const CClassId NLMISC::EventKeyDownId ( 0x3c2643da  ,
0x43f802a1   
)
const CClassId NLMISC::EventKeyUpId ( 0x1e62e85  ,
0x68a35d46   
)
const CClassId NLMISC::EventMouseDblClkId ( 0x55a94cb3  ,
0x3e641517   
)
const CClassId NLMISC::EventMouseDownId ( 0x35b7878  ,
0x5d4a0f86   
)
const CClassId NLMISC::EventMouseMoveId ( 0x3dd12fdb  ,
0x472f548b   
)
const CClassId NLMISC::EventMouseUpId ( 0xcce1f7e  ,
0x7ed344d7   
)
const CClassId NLMISC::EventMouseWheelId ( 0x73ac4321  ,
0x4c273150   
)
const CClassId NLMISC::EventSetFocusId ( 0x17650fac  ,
0x19f85dde   
)
template<class T >
void NLMISC::explode ( const T src,
const T sep,
std::vector< T > &  res,
bool  skipEmpty = false 
) [inline]

Returns a string corresponding to the class T in string format.

Example: string num = toString (1234); // num = "1234"; Returns a string corresponding to the format and parameter (like printf). Example: string hexnum = toString ("%x", 255); // hexnum = "ff"; Explode a string (or ucstring) into a vector of string with *sep* as separator. If sep can be more than 1 char, in this case, we find the entire sep to separator (it s not a set of possible separator)

Parameters:
skipEmpty if true, we don't put in the res vector empty string

Definition at line 401 of file common.h.

Referenced by NLMISC::CSystemInfo::availableHDSpace(), NLMISC::CEnumBitset< EnumType, BitsetType, maxValue, Delimiter, EnumAccessor, SimpleEnumType >::fromString(), getCpuInfo(), NLMISC::CXMLPack::getFile(), NLNET::TParsedCommandLine::getParam(), getSystemMemory(), NLNET::IService::main(), NLMISC_CATEGORISED_COMMAND(), STRING_MANAGER::preparePhraseFile(), STRING_MANAGER::prepareStringFile(), NLLIGO::selectPrimByPath(), NL3D::CDriverGL::setDisplay(), NLNET::TParsedCommandLine::setParam(), and NLSOUND::CAudioMixerUser::tryToLoadSoundBank().

static void NLMISC::fastClamp8 ( sint v  )  [inline, static]
float NLMISC::favoid0 ( float  x  )  [inline]

Definition at line 626 of file common.h.

Referenced by NLMISC::CPlane::clipPolygonBack().

static memcpyPtr NLMISC::findBestmemcpy (  )  [static]

Definition at line 225 of file fast_mem.cpp.

References NLMISC::CSystemInfo::hasSSE(), and NLMISC::CFastMem::memcpySSE().

std::string NLMISC::formatErrorMessage ( int  errorCode  ) 

Return a readable text according to the error code submited.

Definition at line 1425 of file debug.cpp.

Referenced by NLMISC::CFile::getFileModificationDate(), nlGetSymbolAddress(), nlLoadLibrary(), and NLMISC::CFile::setFileModificationDate().

float NLMISC::frand ( float  mod  )  [inline]

Return a float random inside the interval [0,mod].

Definition at line 97 of file common.h.

Referenced by NLMISC::CRandomGrid3D::CRandomGrid3D(), NL3D::CMeshVPWindTree::initInstance(), and NL3D::CPSBrownianForce::initPrecalc().

static bool NLMISC::fromHex ( char  c,
uint8 x 
) [static]

Definition at line 127 of file md5.cpp.

References nlwarning.

Referenced by NLMISC::CHashKeyMD5::fromString().

uint32 NLMISC::fromHumanReadable ( const std::string &  str  ) 

Get a bytes or time in string format and convert it in seconds or bytes.

Definition at line 427 of file common.cpp.

References fromString().

bool NLMISC::fromString ( const std::string &  str,
std::string &  val 
) [inline]

Definition at line 238 of file string_common.h.

bool NLMISC::fromString ( const std::string &  str,
bool val 
) [inline]

Definition at line 237 of file string_common.h.

bool NLMISC::fromString ( const std::string &  str,
double val 
) [inline]

Definition at line 236 of file string_common.h.

bool NLMISC::fromString ( const std::string &  str,
float val 
) [inline]

Definition at line 235 of file string_common.h.

bool NLMISC::fromString ( const std::string &  str,
sint64 val 
) [inline]

Definition at line 234 of file string_common.h.

References NL_I64.

bool NLMISC::fromString ( const std::string &  str,
uint64 val 
) [inline]

Definition at line 233 of file string_common.h.

References NL_I64.

bool NLMISC::fromString ( const std::string &  str,
sint16 val 
) [inline]

Definition at line 232 of file string_common.h.

bool NLMISC::fromString ( const std::string &  str,
uint16 val 
) [inline]

Definition at line 231 of file string_common.h.

bool NLMISC::fromString ( const std::string &  str,
sint8 val 
) [inline]

Definition at line 230 of file string_common.h.

bool NLMISC::fromString ( const std::string &  str,
uint8 val 
) [inline]

Definition at line 229 of file string_common.h.

bool NLMISC::fromString ( const std::string &  str,
sint32 val 
) [inline]

Definition at line 228 of file string_common.h.

bool NLMISC::fromString ( const std::string &  str,
uint32 val 
) [inline]

Definition at line 227 of file string_common.h.

template<class T >
bool NLMISC::fromString ( const std::string &  str,
T obj 
) [inline]
sint NLMISC::fsgn ( double  f  )  [inline]

Return -1 if f<0, 0 if f==0, 1 if f>1.

Definition at line 107 of file common.h.

Referenced by NLPACS::CEdgeCollide::testPointMove().

void NLMISC::getCallStack ( std::string &  result,
sint  skipNFirst = 0 
)

Get the call stack and set it with result.

Definition at line 1021 of file debug.cpp.

References toString().

void NLMISC::getCallStackAndLog ( std::string &  result,
sint  skipNFirst = 0 
)

Get the call stack and the logs and set it with result.

Definition at line 1055 of file debug.cpp.

References CrashCallback, DefaultMemDisplayer, and NLMISC::CMemDisplayer::write().

Referenced by NLMISC::CLog::displayRawString(), and NLMISC::CLog::displayString().

static string NLMISC::getCpuInfo ( const string &  colname  )  [static]

Definition at line 55 of file system_info.cpp.

References explode(), fd, nlwarning, and trim().

Referenced by NLMISC::CSystemInfo::getProc().

TKey NLMISC::getKey ( KeySym  keysym  ) 
int NLMISC::getLastError (  ) 

Return the last error code generated by a system call.

Definition at line 1415 of file debug.cpp.

Referenced by NLNET::ESocket::ESocket(), NLMISC::CFile::getFileModificationDate(), nlGetSymbolAddress(), nlLoadLibrary(), and NLMISC::CFile::setFileModificationDate().

CHashKeyMD5 NLMISC::getMD5 ( const uint8 buffer,
uint32  size 
)
CHashKeyMD5 NLMISC::getMD5 ( const std::string &  filename  ) 

MD5 High level routines Largely inspired from the RSA Data Security works.

Author:
Matthieu Besson
Nevrax France
Date:
July 2004

Definition at line 71 of file md5.cpp.

References bufferSize, NLMISC::CHashKeyMD5::clear(), NLMISC::CIFile::close(), NLMISC::CIFile::eof(), NLMISC::CMD5Context::final(), NLMISC::CIFile::getFileSize(), NLMISC::CMD5Context::init(), NLMISC::CPath::lookup(), min, n, nlwarning, NLMISC::CIFile::open(), NLMISC::CIFile::serialBuffer(), and NLMISC::CMD5Context::update().

TMouseButton NLMISC::getMouseButton ( uint32  state  ) 
string NLMISC::getname ( dirent *  de  ) 

Definition at line 785 of file path.cpp.

References nlassert.

Referenced by NLMISC::CFileContainer::getPathContent().

uint NLMISC::getPowerOf2 ( uint  v  ) 
static uint64 NLMISC::getSystemMemory ( const string &  colname  )  [static]
uint NLMISC::getThreadId (  ) 

Returns Process Id (note: on Linux, Process Id is the same as the Thread Id).

Returns Thread Id (note: on Linux, Process Id is the same as the Thread Id)

Definition at line 117 of file common.cpp.

Referenced by NLNET::CUnifiedNetwork::addService(), NLNET::CUnifiedNetwork::connect(), NLMISC::CLog::displayString(), NLNET::CUnifiedNetwork::getNetBase(), NLNET::CUnifiedNetwork::init(), NLNET::initSignal(), NLNET::CUnifiedNetwork::release(), NLNET::CUnifiedNetwork::send(), NLNET::CUnifiedNetwork::sendAll(), and NLNET::sigHandler().

static float NLMISC::HLSValue ( float  h,
float  v1,
float  v2 
) [static]

Used by buildFromHLS.

Definition at line 659 of file rgba.cpp.

Referenced by NLMISC::CRGBA::buildFromHLS().

uint32 NLMISC::humanReadableToBytes ( const std::string &  str  ) 

Convert a human readable into a bytes, for example "102kb" -> 105123.

Definition at line 350 of file common.cpp.

Referenced by NLMISC_CATEGORISED_COMMAND(), and NLNET::updateAdmin().

template<class T >
T NLMISC::iavoid0 ( T  x  )  [inline]

Definition at line 638 of file common.h.

Referenced by NLSOUND::CAudioMixerUser::writeProfile().

NLMISC::if ( args.size()!  = 1  ) 
static TSynchronizedFileAccessLog NLMISC::IFileAccessLog ( "IFileAccessLog"   )  [static]
void NLMISC::incrementalBlend ( float value,
float  target,
float  absDelta 
) [inline]

Definition at line 49 of file algo.h.

References nlassert.

static void NLMISC::initDebug2 ( bool  logInFile  )  [static]
void NLMISC::initNelLibrary ( NLMISC::CLibrary lib  ) 

helper function to init newly loaded nel library

Definition at line 437 of file app_context.cpp.

References NLMISC::INelContext::getInstance(), NLMISC::CLibrary::getSymbolAddress(), NLMISC::CLibrary::isLibraryLoaded(), and nlassert.

bool NLMISC::isCrashAlreadyReported (  ) 

Definition at line 165 of file debug.cpp.

References CrashAlreadyReported.

Referenced by NLMISC::CMsgBoxDisplayer::doDisplay().

bool NLMISC::isdirectory ( dirent *  de  ) 
bool NLMISC::isfile ( dirent *  de  ) 
bool NLMISC::isPowerOf2 ( sint32  v  ) 
double NLMISC::isValidDouble ( double  v  )  [inline]
void NLMISC::itoaInt64 ( sint64  number,
char *  str,
sint64  base = 10 
)

Convert an sint64 into a string (same as itoa() function but for 64 bits intergers).

Definition at line 248 of file common.cpp.

References n.

bool NLMISC::killProgram ( uint32  pid  ) 

This function kills a program using his pid (on unix, it uses the kill() POSIX function).

Definition at line 564 of file common.cpp.

References nlwarning.

Referenced by NLMISC_CATEGORISED_COMMAND().

bool NLMISC::launchProgram ( const std::string &  programName,
const std::string &  arguments 
)

This function executes a program in the background and returns instantly (used for example to launch services in AES).

The program will be launched in the current directory

WARNING : NO MORE INSTRCUTION AFTER VFORK ! READ VFORK manual

WARNING : NO MORE INSTRCUTION AFTER VFORK ! READ VFORK manual

Definition at line 605 of file common.cpp.

References nlwarning.

Referenced by NLMISC_CATEGORISED_COMMAND(), and openURL().

template<class T >
T NLMISC::maxof ( const T a,
const T b,
const T c,
const T d,
const T e 
) [inline]

Definition at line 147 of file common.h.

References maxof().

template<class T >
T NLMISC::maxof ( const T a,
const T b,
const T c,
const T d 
) [inline]

Definition at line 145 of file common.h.

References maxof().

template<class T >
T NLMISC::maxof ( const T a,
const T b,
const T c 
) [inline]
template<class T >
T NLMISC::minof ( const T a,
const T b,
const T c,
const T d,
const T e 
) [inline]

Definition at line 141 of file common.h.

References min, and minof().

template<class T >
T NLMISC::minof ( const T a,
const T b,
const T c,
const T d 
) [inline]

Definition at line 139 of file common.h.

References min, and minof().

template<class T >
T NLMISC::minof ( const T a,
const T b,
const T c 
) [inline]
static CPolygon2D::TVec2fVect::const_iterator NLMISC::Next ( const CPolygon2D::TVec2fVect::const_iterator &  it,
const CPolygon2D::TVec2fVect cont 
) [inline, static]
NLMISC::NL_INSTANCE_COUNTER_IMPL ( CWordsDictionary   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( CRGBA   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( CVector   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( double   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( float   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( unsigned  char  ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( char   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( uint64   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( sint64   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( uint32   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( sint32   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( uint16   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( sint16   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( bool   ) 
NLMISC::NL_TRIVIAL_TYPE_TRAITS ( NL3D::CPlaneBasis   ) 
void NLMISC::nlError ( const char *  format,
  ... 
)

Never use this function but call the nlerror macro (internal use only).

Definition at line 199 of file debug.cpp.

References DefaultMsgBoxDisplayer, ErrorLog, NLMISC::INelContext::getInstance(), NLMISC_BREAKPOINT, NLMISC_CONVERT_VARGS, and NLMISC::INelContext::setDebugNeedAssert().

Referenced by NLNET::cbPacsAnswer().

void NLMISC::nlFatalError ( const char *  format,
  ... 
)

Never use this function (internal use only).

Definition at line 180 of file debug.cpp.

References DefaultMsgBoxDisplayer, ErrorLog, NLMISC::INelContext::getInstance(), NLMISC_BREAKPOINT, NLMISC_CONVERT_VARGS, and NLMISC::INelContext::setDebugNeedAssert().

bool NLMISC::nlFreeLibrary ( NL_LIB_HANDLE  libHandle  ) 

Generic dynamic library unloading function.

Definition at line 49 of file dynloadlib.cpp.

Referenced by NLMISC::CLibrary::freeLibrary(), and NLMISC::CLibrary::~CLibrary().

int NLMISC::nlfseek64 ( FILE *  stream,
sint64  offset,
int  origin 
)

Signed 64 bit fseek.

Same interface as fseek

Definition at line 791 of file common.cpp.

References min, nlassert, and SINT64_CONSTANT.

Referenced by NLMISC::CBigFile::add(), NLMISC::CFileContainer::addSearchBigFile(), NLMISC::CIFile::open(), NLMISC::COFile::seek(), and NLMISC::CIFile::seek().

sint64 NLMISC::nlftell64 ( FILE *  stream  ) 

Definition at line 847 of file common.cpp.

References nlerror.

void * NLMISC::nlGetSymbolAddress ( NL_LIB_HANDLE  libHandle,
const std::string &  symbolName 
)

Generic dynamic library symbol address lookup function.

Definition at line 60 of file dynloadlib.cpp.

References formatErrorMessage(), getLastError(), and nlwarning.

Referenced by NLMISC::CLibrary::getSymbolAddress().

const string NLMISC::nlLibExt ( ".so"   ) 
const string NLMISC::nlLibPrefix ( "lib"   ) 
NL_LIB_HANDLE NLMISC::nlLoadLibrary ( const std::string &  libName  ) 

Generic dynamic library loading function.

Definition at line 35 of file dynloadlib.cpp.

References formatErrorMessage(), getLastError(), and nlwarning.

Referenced by NLMISC::CLibrary::loadLibrary().

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
displayMeasures  ,
"display hierarchical timer"  ,
" "  [TotalTime(=-2)|NoSort(=-3)|TotalTimeWithoutSons(=-4)|MeanTime(=-5)|NumVisits(=-6)|MaxTime(=-7)|MinTime(=-8)|MaxSession(=-9)][depth] 
)
NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
iFileAccessLogDisplay  ,
"Display file access logs"  ,
""   
)
NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
iFileAccessLogClear  ,
"Clear file access logs"  ,
""   
)

Definition at line 756 of file file.cpp.

References IFileAccessLog().

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
iFileAccessLogStop  ,
"Stop file access logging"  ,
""   
)

Definition at line 745 of file file.cpp.

References IFileAccessLoggingEnabled.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
iFileAccessLogStart  ,
"Start file access logging"  ,
""   
)
NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
playerInfo  ,
"Get informations about a player or all players in CEntityIdTranslator"  ,
""  [< entityname >|< eid >|< username >|< uid >] 
)
NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
entityNameValid  ,
"Tell if an entity name is valid or not using CEntityIdTranslator validation rulez"  ,
"<entityname>"   
)

Definition at line 790 of file eid_translator.cpp.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
findEIdByEntity  ,
"Find entity id using the entity name"  ,
"<entityname>|<eid>"   
)
NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
findEIdByUser  ,
"Find entity ids using the user name"  ,
"<username>|<uid>"   
)

Definition at line 728 of file eid_translator.cpp.

References toString().

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
displayFilterWarning  ,
"display filter on WarningLog"  ,
""   
)

Definition at line 1646 of file debug.cpp.

References WarningLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
removeFilterWarning  ,
"remove a filter on WarningLog"  ,
""  [< filterstr >] 
)

Definition at line 1636 of file debug.cpp.

References WarningLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
addNegativeFilterWarning  ,
"add a negative filter on WarningLog"  ,
"<filterstr>"   
)

Definition at line 1629 of file debug.cpp.

References WarningLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
addPositiveFilterWarning  ,
"add a positive filter on WarningLog"  ,
"<filterstr>"   
)

Definition at line 1622 of file debug.cpp.

References WarningLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
displayFilterInfo  ,
"display filter on InfoLog"  ,
""  [d|i|w|e] 
)

Definition at line 1599 of file debug.cpp.

References DebugLog, ErrorLog, InfoLog, and WarningLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
removeFilterInfo  ,
"remove a filter on InfoLog"  ,
""  [< filterstr >] 
)

Definition at line 1589 of file debug.cpp.

References InfoLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
addNegativeFilterInfo  ,
"add a negative filter on InfoLog"  ,
"<filterstr>"   
)

Definition at line 1582 of file debug.cpp.

References InfoLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
addPositiveFilterInfo  ,
"add a positive filter on InfoLog"  ,
"<filterstr>"   
)

Definition at line 1575 of file debug.cpp.

References InfoLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
displayFilterDebug  ,
"display filter on DebugLog"  ,
""   
)

Definition at line 1568 of file debug.cpp.

References DebugLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
removeFilterDebug  ,
"remove a filter on DebugLog"  ,
""  [< filterstr >] 
)

Definition at line 1558 of file debug.cpp.

References DebugLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
addNegativeFilterDebug  ,
"add a negative filter on DebugLog"  ,
"<filterstr>"   
)

Definition at line 1551 of file debug.cpp.

References DebugLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
addPositiveFilterDebug  ,
"add a positive filter on DebugLog"  ,
"<filterstr>"   
)

Definition at line 1544 of file debug.cpp.

References DebugLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
resetFilters  ,
"disable all filters on Nel loggers"  ,
""  [debug|info|warning|error|assert] 
)

Definition at line 1518 of file debug.cpp.

References AssertLog, DebugLog, ErrorLog, InfoLog, and WarningLog.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
displayMemlog  ,
"displays the last N line of the log in memory"  ,
""  [< NbLines >] 
)
NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
resetInstanceCounterDelta  ,
"reset the delta value for instance counter"  ,
""   
)
NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
displayInstanceCounter  ,
"display the instance counters"  ,
""  [< filter >] 
)
NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
killProgram  ,
"kill a program given the pid"  ,
"<pid>"   
)

Definition at line 904 of file common.cpp.

References fromString(), and killProgram().

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
launchProgram  ,
"Execute the command line using launcProgram() function call (launch in background task without waiting the end of the execution)"  ,
"<programName> <arguments>"   
)

Definition at line 892 of file common.cpp.

References launchProgram().

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
system  ,
"Execute the command line using system() function call (wait until the end of the command)"  ,
"<commandline>"   
)

Definition at line 881 of file common.cpp.

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
stohr  ,
"Convert a second number into an human readable time"  ,
"<int>"   
)

Definition at line 455 of file common.cpp.

References fromString(), and secondsToHumanReadable().

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
hrtob  ,
"Convert a human readable number into a bytes number"  ,
"<hr>"   
)

Definition at line 393 of file common.cpp.

References humanReadableToBytes().

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
btohr  ,
"Convert a bytes number into an human readable number"  ,
"<int>"   
)

Definition at line 382 of file common.cpp.

References bytesToHumanReadable().

NLMISC::NLMISC_CATEGORISED_COMMAND ( nel  ,
help  ,
"display help on a specific variable/commands or on all variables and commands"  ,
""  [< variable >|< command >] 
)
NLMISC::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
string  ,
OS  ,
"OS used"   
)

Definition at line 1267 of file system_info.cpp.

References NLMISC::CSystemInfo::getOS().

NLMISC::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
string  ,
ProcessUsedMemory  ,
"Memory used by this process in bytes"   
)
NLMISC::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
string  ,
TotalPhysicalMemory  ,
"Total physical memory on this computer in bytes"   
)
NLMISC::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
string  ,
AvailablePhysicalMemory  ,
"Physical memory available on this computer in bytes"   
)
NLMISC::NLMISC_CATEGORISED_DYNVARIABLE ( nel  ,
string  ,
AvailableHDSpace  ,
"Hard drive space left in bytes"   
)

Definition at line 1237 of file system_info.cpp.

References NLMISC::CSystemInfo::availableHDSpace().

NLMISC::NLMISC_SAFE_SINGLETON_IMPL ( CXMLPack   ) 
NLMISC::NLMISC_SAFE_SINGLETON_IMPL ( CPath   ) 
NLMISC::NLMISC_SAFE_SINGLETON_IMPL ( CEntityIdTranslator   ) 
NLMISC::NLMISC_SAFE_SINGLETON_IMPL ( CInstanceCounterManager   ) 
NLMISC::NLMISC_SAFE_SINGLETON_IMPL ( CCommandRegistry   ) 
NLMISC::NLMISC_SAFE_SINGLETON_IMPL ( CCurrentCoTask   ) 
NLMISC::NLMISC_SAFE_SINGLETON_IMPL ( CBigFile   ) 
NLMISC::NLMISC_SAFE_SINGLETON_IMPL ( CAsyncFileManager   ) 
NLMISC::nlSleep ( n *  1000  ) 
void NLMISC::nlSleep ( uint32  ms  ) 
sint NLMISC::nlstricmp ( const char *  lhs,
const std::string &  rhs 
) [inline]

Definition at line 269 of file common.h.

References stricmp().

sint NLMISC::nlstricmp ( const std::string &  lhs,
const char *  rhs 
) [inline]

Definition at line 268 of file common.h.

References stricmp().

sint NLMISC::nlstricmp ( const std::string &  lhs,
const std::string &  rhs 
) [inline]

Definition at line 267 of file common.h.

References stricmp().

sint NLMISC::nlstricmp ( const char *  lhs,
const char *  rhs 
) [inline]
bool NLMISC::openDoc ( const char *  document  ) 

Definition at line 970 of file common.cpp.

References NLMISC::CFile::getExtension(), and MAX_PATH.

bool NLMISC::openURL ( const char *  url  ) 

Definition at line 932 of file common.cpp.

References launchProgram(), and nlwarning.

Referenced by NL3D::CDriverD3D::CDriverD3D().

bool NLMISC::operator!= ( const CGameDeviceDesc &  lhs,
const CGameDeviceDesc &  rhs 
) [inline]

Definition at line 58 of file game_device.h.

CPlane NLMISC::operator* ( const CPlane &  p,
const CMatrix &  m 
)
CVectorD NLMISC::operator* ( double  f,
const CVectorD &  v 
) [inline]

Definition at line 86 of file vectord_inline.h.

References NLMISC::CVectorD::x, NLMISC::CVectorD::y, and NLMISC::CVectorD::z.

CVector NLMISC::operator* ( float  f,
const CVector &  v 
) [inline]

Definition at line 87 of file vector_inline.h.

References NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z.

CVector2f NLMISC::operator* ( float  f,
const CVector2f &  v 
) [inline]

Definition at line 138 of file vector_2f.h.

CVector2d NLMISC::operator* ( double  f,
const CVector2d &  v 
) [inline]

Definition at line 132 of file vector_2d.h.

CUV NLMISC::operator* ( const CUV &  uv,
float  f 
) [inline]

Definition at line 90 of file uv.h.

CUV NLMISC::operator* ( float  f,
const CUV &  uv 
) [inline]

Definition at line 84 of file uv.h.

References NLMISC::CUV::U, and NLMISC::CUV::V.

CRGBAF NLMISC::operator* ( float  f,
const CRGBAF &  c 
) [inline]

Mul float operator.

Multiplate each component by f.

Parameters:
f Float factor.
Returns:
Return the result

Definition at line 683 of file rgba.h.

References NLMISC::CRGBAF::A, NLMISC::CRGBAF::B, NLMISC::CRGBAF::G, and NLMISC::CRGBAF::R.

template<class T >
CQuatT<T> NLMISC::operator* ( T  f,
const CQuatT< T > &  o 
) [inline]

f*quat operator

Definition at line 209 of file quat.h.

CSString NLMISC::operator+ ( const std::string &  s0,
const CSString &  s1 
) [inline]

Definition at line 941 of file sstring.h.

CSString NLMISC::operator+ ( const char *  s0,
const CSString &  s1 
) [inline]

Definition at line 936 of file sstring.h.

CSString NLMISC::operator+ ( char  s0,
const CSString &  s1 
) [inline]

Definition at line 931 of file sstring.h.

bool NLMISC::operator< ( const CVector2f &  lhs,
const CVector2f &  rhs 
) [inline]

Definition at line 144 of file vector_2f.h.

References NLMISC::CVector2f::x, and NLMISC::CVector2f::y.

bool NLMISC::operator< ( const CPolygon2D lhs,
const CPolygon2D rhs 
)

Definition at line 2189 of file polygon.cpp.

References NLMISC::CPolygon2D::Vertices.

template<class T >
bool NLMISC::operator== ( const CRefPtr< T > &  leftRef,
const CRefPtr< T > &  rightRef 
) [inline]

Definition at line 381 of file smart_ptr.h.

template<class T >
bool NLMISC::operator== ( const CRefPtr< T > &  refPtr,
T ptr 
) [inline]

Definition at line 375 of file smart_ptr.h.

bool NLMISC::operator== ( const CPolygon2D lhs,
const CPolygon2D rhs 
)

Definition at line 2182 of file polygon.cpp.

References NLMISC::CPolygon2D::Vertices.

bool NLMISC::operator== ( const CGameDeviceDesc &  lhs,
const CGameDeviceDesc &  rhs 
) [inline]

for devices comparison. The 'Connected' field is ignored.

Definition at line 53 of file game_device.h.

References NLMISC::CGameDeviceDesc::InstanceName, and NLMISC::CGameDeviceDesc::ProductName.

sint NLMISC::OptFastFloor ( float  x  )  [inline]
uint32 NLMISC::OptFastFloor24 ( float  x  )  [inline]

Definition at line 210 of file fast_floor.h.

Referenced by NL3D::CPatchDLMContext::addPointLightInfluence().

void NLMISC::OptFastFloorBegin (  )  [inline]
void NLMISC::OptFastFloorBegin24 (  )  [inline]

Definition at line 196 of file fast_floor.h.

Referenced by NL3D::CPatchDLMContext::addPointLightInfluence().

void NLMISC::OptFastFloorEnd (  )  [inline]
void NLMISC::OptFastFloorEnd24 (  )  [inline]

Definition at line 203 of file fast_floor.h.

Referenced by NL3D::CPatchDLMContext::addPointLightInfluence().

float NLMISC::OptFastFractionnalPart ( float  x  )  [inline]
static CPolygon2D::TVec2fVect::const_iterator NLMISC::Prev ( const CPolygon2D::TVec2fVect::const_iterator &  it,
const CPolygon2D::TVec2fVect cont 
) [inline, static]
static void* NLMISC::ProxyFunc ( void *  arg  )  [static]

Definition at line 57 of file p_thread.cpp.

float NLMISC::radToDeg ( float  rad  )  [inline]

Converts from radians to degrees.

Definition at line 189 of file common.h.

References Pi.

Referenced by NLSOUND::CSourceAL::setCone().

uint NLMISC::raiseToNextPowerOf2 ( uint  v  ) 
void NLMISC::readPNGData ( png_structp  png_ptr,
png_bytep  data,
png_size_t  length 
)

Definition at line 431 of file bitmap_png.cpp.

Referenced by NLMISC::CBitmap::readPNG().

static void NLMISC::removeAllUnusedChar ( string &  str  )  [static]

Definition at line 363 of file path.cpp.

Referenced by NLMISC::CFileContainer::loadRemappedFiles().

string NLMISC::removeSlashR ( std::string  str  ) 

Definition at line 48 of file string_common.cpp.

void NLMISC::report (  ) 

Definition at line 71 of file report.cpp.

TReportResult NLMISC::report ( const std::string &  title,
const std::string &  header,
const std::string &  subject,
const std::string &  body,
bool  enableCheckIgnore,
uint  debugButton,
bool  ignoreButton,
sint  quitButton,
bool  sendReportButton,
bool ignoreNextTime,
const std::string &  attachedFile = "" 
)
template<class T >
void NLMISC::rotateCCW ( const T src,
T dst,
uint  srcWidth,
uint  srcHeight 
) [inline]

Definition at line 2481 of file bitmap.cpp.

template<class T , class U >
T NLMISC::safe_cast ( o  )  [inline]

safe_cast<>: this is a function which nlassert() a dynamic_cast in Debug, and just do a static_cast in release.

So slow check is made in debug, but only fast cast is made in release.

Definition at line 556 of file debug.h.

References nlassert.

Referenced by NL3D::UParticleSystemInstance::activateEmitters(), NL3D::CDriverGL::activeARBVertexProgram(), NL3D::CDriverGL::activeEXTVertexShader(), NL3D::CDriverGL::activeNVVertexProgram(), NL3D::CDriverGL::activeVertexBuffer(), NLPACS::CMoveContainer::addCollisionnablePrimitiveBlock(), NL3D::CInstanceGroupUser::addToScene(), NL3D::CInstanceGroupUser::addToSceneAsync(), NL3D::CInstanceGroup::addToSceneWhenAllShapesLoaded(), NLGEORGES::CFormElm::arrayDeleteNodeByName(), NLGEORGES::CFormElm::arrayInsertNodeByName(), NL3D::UParticleSystemInstance::bypassGlobalUserParamValue(), NL3D::CMeshMultiLodInstance::changeMRMDistanceSetup(), NL3D::CMeshMRMSkinnedInstance::changeMRMDistanceSetup(), NL3D::CMeshMRMInstance::changeMRMDistanceSetup(), NL3D::CMeshMultiLod::compileCoarseMeshes(), NL3D::CWaterModel::computeClippedPoly(), NL3D::CZoneLighter::computeTileFlagsForPositionTowardWater(), NLLIGO::CPrimitives::convertAddPrimitive(), NL3D::CPSAttribMakerBinOp< T >::CPSAttribMakerBinOp(), NL3D::CPSAttribMakerMemoryBase< sint32 >::CPSAttribMakerMemoryBase(), NL3D::CSceneUser::createCamera(), NL3D::CWaveMakerShape::createInstance(), NL3D::CWaterShape::createInstance(), NL3D::CSegRemanenceShape::createInstance(), NL3D::CParticleSystemShape::createInstance(), NL3D::CFlareShape::createInstance(), NL3D::CSceneUser::createPointLight(), NL3D::CSceneUser::createSkeleton(), NL3D::D3DWndProc(), NL3D::CPSLocated::deleteElementBase(), NL3D::CDriverGL::deleteOcclusionQuery(), NL3D::CDriverD3D::deleteOcclusionQuery(), NL3D::CPlayListManagerUser::deletePlayList(), NL3D::CParticleSystemModel::doAnimate(), NL3D::UParticleSystemInstance::emit(), NL3D::CMeshBaseInstance::enableAsyncTextureMode(), NL3D::CDriverGL::enableLowLevelKeyboard(), NL3D::CDriverD3D::enableLowLevelKeyboard(), NL3D::CDriverGL::enableLowLevelMouse(), NL3D::CDriverD3D::enableLowLevelMouse(), NL3D::CParticleSystem::evalDuration(), NLGEORGES::CMyEvalNumExpr::evalValue(), NL3D::UParticleSystemInstance::forceInstanciate(), NL3D::UParticleSystemInstance::forceSetUserMatrix(), NL3D::CParticleSystemModel::getAABBox(), NL3D::CWaterModel::getAttenuatedHeight(), NL3D::CSkeletonModel::getBoneIdByName(), NL3D::CWaveMakerModel::getDefaultTrack(), NL3D::CWaterModel::getDefaultTrack(), NL3D::CSegRemanence::getDefaultTrack(), NL3D::CParticleSystemModel::getDefaultTrack(), NL3D::CDriverGL::getDoubleClickDelay(), NL3D::CDriverD3D::getDoubleClickDelay(), NL3D::GetDummyMeshFromBank(), NL3D::CWaterModel::getHeight(), NL3D::CWaterModel::getHeightFactor(), NL3D::UParticleSystemInstance::getID(), NL3D::UParticleSystemInstance::getIDs(), NLGEORGES::CFormElm::getInternalNodeByName(), NL3D::CPlayListUser::getLocalTime(), NL3D::CDriverGL::getLowLevelInputDeviceManager(), NL3D::CDriverD3D::getLowLevelInputDeviceManager(), NL3D::CPSConstraintMesh::getMeshVB(), NL3D::CMeshMRMSkinnedInstance::getMRMLevelDetail(), NL3D::CMeshMRMInstance::getMRMLevelDetail(), NL3D::UParticleSystemInstance::getNumID(), NL3D::CMeshMultiLodInstance::getNumTriangles(), NL3D::CPSLocated::getNumWantedTris(), NL3D::CMeshMRMSkinnedInstance::getSkinBoneBBox(), NL3D::CMeshMRMInstance::getSkinBoneBBox(), NL3D::CMeshMRMSkinnedInstance::getSkinBoneSphere(), NL3D::CMeshMRMInstance::getSkinBoneSphere(), NL3D::CMeshInstance::getSkinBoneSphere(), NL3D::CMeshMRMSkinnedInstance::getSkinBoneUsage(), NL3D::CMeshMRMInstance::getSkinBoneUsage(), NL3D::CMeshInstance::getSkinBoneUsage(), NL3D::CParticleSystem::getSortingByEmitterPrecedence(), NL3D::CDriverD3D::getSurfaceTexture(), NL3D::UParticleSystemInstance::getSystemBBox(), NL3D::UInstanceMaterial::getTextureFileName(), NL3D::UParticleSystemInstance::getUserColor(), NL3D::UParticleSystemInstance::getUserParam(), NLGEORGES::CFormElm::getValueByName(), NL3D::CWaterModel::getWaterHeightMapID(), NL3D::UParticleSystemInstance::hasEmmiters(), NL3D::UParticleSystemInstance::hasParticles(), NL3D::CMeshMultiLodInstance::initRenderFilterType(), NL3D::CMeshMRMSkinnedInstance::initRenderFilterType(), NL3D::CMeshMRMInstance::initRenderFilterType(), NL3D::CMeshInstance::initRenderFilterType(), NL3D::CMeshMultiLod::instanciateCoarseMeshSpace(), NL3D::CMeshMRMSkinnedInstance::intersectSkin(), NL3D::CMeshMRMInstance::intersectSkin(), NL3D::CMeshInstance::intersectSkin(), NL3D::CMeshBaseInstance::isAsyncTextureReady(), NL3D::UParticleSystemInstance::isShared(), NL3D::CMeshMRMInstance::isSkinnable(), NL3D::CMeshInstance::isSkinnable(), NL3D::UParticleSystemInstance::isSystemPresent(), NL3D::UParticleSystemInstance::isValid(), NL3D::CZoneLighter::lightWater(), NL3D::CPSLocated::newElement(), NL3D::CDriverD3D::notifyAllShaderDrvOfLostDevice(), NL3D::CDriverD3D::notifyAllShaderDrvOfResetDevice(), NL3D::CDriverD3D::profileIBAllocation(), NL3D::CMeshMultiLod::profileSceneRender(), NL3D::CMeshMRMSkinnedGeom::profileSceneRender(), NL3D::CMeshMRMGeom::profileSceneRender(), NL3D::CMeshGeom::profileSceneRender(), NLPACS::CMoveContainer::reaction(), NL3D::UParticleSystemInstance::reactivateSound(), NL3D::CParticleSystemModel::reallocRsc(), NL3D::CParticleSystemModel::refreshRscDeletion(), NL3D::CParticleSystemModel::releasePSPointer(), NL3D::CParticleSystemModel::releaseRscAndInvalidate(), NL3D::UParticleSystemInstance::removeByID(), NL3D::CSegRemanenceShape::render(), NL3D::CSegRemanence::render(), NL3D::CParticleSystemShape::render(), NL3D::CMeshMultiLod::render(), NL3D::CMeshMRMSkinnedGeom::render(), NL3D::CMeshMRMGeom::render(), NL3D::CMeshGeom::render(), NL3D::CMeshMultiLod::renderCoarseMesh(), NL3D::CMeshMultiLod::renderMeshGeom(), NL3D::CFlareModel::renderOcclusionTestMesh(), NL3D::CScene::renderOcclusionTestMeshsWithCurrMaterial(), NL3D::CMeshMRMSkinnedInstance::renderShadowSkinGeom(), NL3D::CMeshMRMInstance::renderShadowSkinGeom(), NL3D::CMeshMRMSkinnedInstance::renderShadowSkinPrimitives(), NL3D::CMeshMRMInstance::renderShadowSkinPrimitives(), NL3D::CMeshMRMSkinnedInstance::renderSkin(), NL3D::CMeshMRMInstance::renderSkin(), NL3D::CMeshMRMGeom::renderSkin(), NL3D::CMeshInstance::renderSkin(), NL3D::CMeshGeom::renderSkin(), NL3D::CMeshMRMSkinnedInstance::renderSkinGroupGeom(), NL3D::CMeshMRMInstance::renderSkinGroupGeom(), NL3D::CMeshMRMSkinnedInstance::renderSkinGroupPrimitives(), NL3D::CMeshMRMInstance::renderSkinGroupPrimitives(), NL3D::CMeshMRMSkinnedInstance::renderSkinGroupSpecularRdrPass(), NL3D::CMeshMRMInstance::renderSkinGroupSpecularRdrPass(), NL3D::CDriverD3D::reset(), NL3D::CSegRemanence::restart(), NL3D::CSegRemanence::samplePos(), NL3D::CMeshBaseInstance::selectTextureSet(), NLNET::TSecurityDataDesc::serial(), NL3D::UParticleSystemInstance::setActive(), NL3D::CMeshMRMSkinnedInstance::setApplySkin(), NL3D::CMeshMRMInstance::setApplySkin(), NL3D::CMeshInstance::setApplySkin(), NL3D::CSceneUser::setAutomaticAnimationSet(), NL3D::CSegRemanence::setupFromShape(), NL3D::CDriverGL::setupGlArraysForEXTVertexShader(), NL3D::CDriverD3D::setupMaterial(), NL3D::CFlareModel::setupOcclusionMeshMatrix(), NL3D::CDriverGL::setupTextureEx(), NL3D::CVertexBufferInfo::setupVertexBuffer(), NL3D::CDriverGL::setupWaterPassARB(), NL3D::CDriverGL::setupWaterPassR200(), NL3D::UParticleSystemInstance::setUserColor(), NL3D::UParticleSystemInstance::setUserMatrix(), NL3D::UParticleSystemInstance::setUserParam(), NLGEORGES::CFormElm::setValueByName(), NL3D::UParticleSystemInstance::setZBias(), NL3D::CPSLight::step(), NL3D::UParticleSystemInstance::stopSound(), NL3D::CMeshMRMSkinnedInstance::supportIntersectSkin(), NL3D::CMeshMRMInstance::supportIntersectSkin(), NL3D::CMeshInstance::supportIntersectSkin(), NL3D::CMeshMultiLod::supportMeshBlockRendering(), NL3D::CMeshMRMSkinnedInstance::supportShadowSkinGrouping(), NL3D::CMeshMRMInstance::supportShadowSkinGrouping(), NL3D::CMeshMRMSkinnedInstance::supportSkinGrouping(), NL3D::CMeshMRMInstance::supportSkinGrouping(), NL3D::CDriverGL::swapBuffers(), NL3D::CDriverD3D::swapBuffers(), NL3D::CDriverGL::toggleGlArraysForEXTVertexShader(), NL3D::CWaveMakerModel::traverseAnimDetail(), NL3D::CParticleSystemModel::traverseAnimDetail(), NL3D::CMeshBaseInstance::traverseAnimDetail(), NL3D::CParticleSystemModel::traverseClip(), NL3D::CMeshBaseInstance::traverseHrc(), NL3D::CMeshMultiLodInstance::traverseLoadBalancing(), NL3D::CWaterModel::traverseRender(), NL3D::CTransformShape::traverseRender(), NL3D::CFlareModel::traverseRender(), NL3D::CVBDrvInfosD3D::unlock(), NL3D::CPSConstraintMesh::update(), NL3D::CWaterModel::updateDiffuseMapMatrix(), NL3D::CWaterShape::updateHeightMapNormalizationFactors(), NL3D::CSegRemanence::updateOpacityFromShape(), NLLIGO::IPrimitive::write(), NL3D::CVBDrvInfosD3D::~CVBDrvInfosD3D(), and NL3D::CWaterModel::~CWaterModel().

static void NLMISC::ScanEdge ( CPolygon2D::TRasterVect outputVect,
sint  topY,
const CVector2f v1,
const CVector2f v2,
bool  rightEdge = true 
) [static]

***************************************************************************************

Definition at line 1062 of file polygon.cpp.

References NLMISC::CVector2f::x, and NLMISC::CVector2f::y.

Referenced by NLMISC::CPolygon2D::computeBorders().

static void NLMISC::ScanInnerEdge ( CPolygon2D::TRaster *  r,
float  x1,
float  y1,
float  x2,
float  y2,
sint  minY,
bool  rightEdge 
) [static]

Definition at line 1687 of file polygon.cpp.

References min.

Referenced by NLMISC::CPolygon2D::computeInnerBorders().

static void NLMISC::ScanOuterEdgeLeft ( CPolygon2D::TRaster *  r,
float  x1,
float  y1,
float  x2,
float  y2,
sint  minY 
) [static]

Definition at line 1431 of file polygon.cpp.

References min.

Referenced by NLMISC::CPolygon2D::computeOuterBorders().

static void NLMISC::ScanOuterEdgeRight ( CPolygon2D::TRaster *  r,
float  x1,
float  y1,
float  x2,
float  y2,
sint  minY 
) [static]

Definition at line 1361 of file polygon.cpp.

Referenced by NLMISC::CPolygon2D::computeOuterBorders().

template<class T >
uint NLMISC::searchLowerBound ( const std::vector< T > &  array,
const T key 
) [inline]

Search the lower_bound in a sorted array of Value, in growing order (0, 1, 2.

...). operator<= is used to perform the comparison. It returns the first element such that array[id]<=key If not possible, 0 is returned NB: but 0 may still be a good value, so you must check whether or not 0 means "Not found", or "Id 0".

Definition at line 135 of file algo.h.

References searchLowerBound().

template<class T >
uint NLMISC::searchLowerBound ( const T array,
uint  arraySize,
const T key 
) [inline]

Search the lower_bound in a sorted array of Value, in growing order (0, 1, 2.

...). operator<= is used to perform the comparison. It return the first element such that array[id]<=key If not possible, 0 is returned NB: but 0 may still be a good value, so you must check whether or not 0 means "Not found", or "Id 0".

Definition at line 108 of file algo.h.

Referenced by NL3D::CTrackSampledQuatSmallHeader::evalTime(), NL3D::CTrackSampledCommon::evalTime(), NL3D::CHLSTextureManager::findTexture(), NL3D::CAnimation::getIdTrackByChannelId(), and searchLowerBound().

string NLMISC::secondsToHumanReadable ( uint32  time  ) 

Convert a time into a string that is easily readable by an human, for example 3600 -> "1h".

Definition at line 404 of file common.cpp.

References toString().

Referenced by NLMISC_CATEGORISED_COMMAND(), and NLNET::NLMISC_CATEGORISED_DYNVARIABLE().

void NLMISC::setAssert ( bool  assert  ) 
void NLMISC::setCrashAlreadyReported ( bool  state  ) 

Definition at line 169 of file debug.cpp.

References CrashAlreadyReported.

Referenced by NLMISC::CMsgBoxDisplayer::doDisplay().

void NLMISC::setCrashCallback ( TCrashCallback  crashCallback  ) 

Definition at line 158 of file debug.cpp.

References CrashCallback.

template<class T , class U >
void NLMISC::setFlags ( T dest,
mask,
bool  on 
) [inline]

Definition at line 223 of file algo.h.

void NLMISC::setPNGError ( png_struct *  png_ptr,
const char *  message 
)

Definition at line 452 of file bitmap_png.cpp.

References setPNGWarning().

Referenced by NLMISC::CBitmap::writePNG().

void NLMISC::setPNGWarning ( png_struct *  png_ptr,
const char *  message 
)

Definition at line 445 of file bitmap_png.cpp.

References nlwarning.

Referenced by setPNGError(), and NLMISC::CBitmap::writePNG().

void NLMISC::setReportEmailFunction ( void *  emailFunction  ) 

call this in the main of your appli to enable email: setReportEmailFunction (sendEmail);

Definition at line 57 of file report.cpp.

References EmailFunction.

Referenced by NLNET::IService::main().

static char* NLMISC::skipToken ( const char *  p  )  [inline, static]

Definition at line 1159 of file system_info.cpp.

Referenced by NLMISC::CSystemInfo::getAllocatedSystemMemory().

static char* NLMISC::skipWS ( const char *  p  )  [inline, static]

Definition at line 1153 of file system_info.cpp.

Referenced by NLMISC::CSystemInfo::getAllocatedSystemMemory().

sint NLMISC::smprintf ( char *  buffer,
size_t  count,
const char *  format,
  ... 
)

sMart sprintf function.

This function do a sprintf and add a zero at the end of the buffer if there no enough room in the buffer.

Parameters:
buffer a C string
count Size of the buffer
format of the string, it must be the last argument before the '...'

Definition at line 186 of file common.cpp.

Referenced by NLMISC::IDisplayer::dateToComputerString(), NLMISC::CHTimer::display(), NLMISC::CBufFIFO::display(), NLMISC::CHTimer::displayByExecutionPath(), NLMISC::EBadSize::EBadSize(), NLMISC::EBadType::EBadType(), NLMISC::EFileNotFound::EFileNotFound(), NL3D::CDriverD3D::endProfileIBLock(), NL3D::CDriverGL::endProfileVBHardLock(), NL3D::CDriverD3D::endProfileVBHardLock(), NLMISC::EParseError::EParseError(), NLNET::ESocket::ESocket(), NLMISC::EUnknownVar::EUnknownVar(), NLMISC::CFile::findNewFile(), NLGEORGES::CFormElmArray::getFormName(), NL3D::CFontGenerator::getFT2Error(), NLGEORGES::CFormElm::getInternalNodeByName(), NL3D::CTextureBlend::getShareName(), NL3D::CDriverGL::getSpecularCubeMap(), NLMISC::CHTimer::CStats::getStats(), NL3D::IDriver::getTextureShareName(), NL3D::CDriverGL::getVideocardInformation(), NL3D::CDriverD3D::getVideocardInformation(), NLLOGIC::getXMLProp(), NLMISC::IDisplayer::HeaderString(), NLSOUND::CSoundAnimation::save(), NLMISC::CIXml::serial(), NLMISC::CIXml::serialSeparatedBufferIn(), NLNET::CLoginCookie::setToString(), NLGEORGES::CFormElm::setValueByName(), NLGEORGES::CFileHeader::write(), NLLOGIC::xmlCheckNodeName(), and NLMISC::CIXml::xmlPushBeginInternal().

void NLMISC::splitString ( const std::string &  str,
const std::string &  separator,
std::vector< std::string > &  retList 
)

From a string with some separators, build a vector of string.

eg: splitString("hello|bye|||bee", "|", list) return 3 string into list: "hello", "bye" and "bee".

Definition at line 120 of file algo.cpp.

Referenced by NLMISC_CATEGORISED_COMMAND(), and NL3D::CSkeletonSpawnScript::parseCache().

void NLMISC::splitUCString ( const ucstring ucstr,
const ucstring separator,
std::vector< ucstring > &  retList 
)

Definition at line 140 of file algo.cpp.

template<class T >
T NLMISC::sqr ( const T v  )  [inline]
template<class T , class U >
bool NLMISC::strFindReplace ( T str,
const char *  strFind,
const U &  strReplace 
) [inline]

Definition at line 215 of file algo.h.

References strFindReplace().

template<class T , class U >
bool NLMISC::strFindReplace ( T str,
const T strFind,
const U &  strReplace 
) [inline]

In a string or ucstring, find a substr and replace it with an other. return true if replaced.

Definition at line 203 of file algo.h.

References NL3D::T().

Referenced by NL3D::IDriver::profileTextureUsage(), and strFindReplace().

int NLMISC::stricmp ( const char *  lhs,
const char *  rhs 
) [inline]

Compare 2 C-Style strings without regard to case.

Returns:
0 if strings are equal, < 0 if lhs < rhs, > 0 if lhs > rhs

On Windows, use stricmp On GNU/Linux, create stricmp using strcasecmp and use stricmp

Definition at line 262 of file common.h.

Referenced by NLMISC::CSString::icompare(), nlstricmp(), NLMISC::CSString::operator!=(), NLMISC::CSString::operator<(), NLMISC::CSString::operator<=(), NLMISC::CSString::operator==(), NLMISC::CSString::operator>(), and NLMISC::CSString::operator>=().

string NLMISC::stringFromVector ( const std::vector< uint8 > &  v,
bool  limited = true 
)

Returns a readable string from a vector of bytes. unprintable char are replaced by '?'.

Definition at line 132 of file common.cpp.

Referenced by NLNET::CBufServer::dataAvailable(), NLNET::CBufClient::dataAvailable(), and NLNET::CNonBlockingBufSock::receivePart().

char* NLMISC::strlwr ( char *  str  )  [inline]

Definition at line 249 of file common.h.

References toLower().

std::string NLMISC::strlwr ( const std::string &  str  )  [inline]

Definition at line 248 of file common.h.

References toLower().

std::string& NLMISC::strlwr ( std::string &  str  )  [inline]
int NLMISC::strnicmp ( const char *  lhs,
const char *  rhs,
size_t  n 
) [inline]

Definition at line 263 of file common.h.

char* NLMISC::strupr ( char *  str  )  [inline]

Definition at line 252 of file common.h.

References toUpper().

std::string NLMISC::strupr ( const std::string &  str  )  [inline]

Definition at line 251 of file common.h.

References toUpper().

std::string& NLMISC::strupr ( std::string &  str  )  [inline]

Definition at line 250 of file common.h.

References toUpper().

static bool NLMISC::testSegmentIntersection ( const CVector2f a,
const CVector2f b,
const CVector2f c,
const CVector2f d 
) [inline, static]

Definition at line 2201 of file polygon.cpp.

References NLMISC::CVector2f::x, and NLMISC::CVector2f::y.

Referenced by NLMISC::CPolygon2D::selfIntersect().

bool NLMISC::testWildCard ( const std::string &  strIn,
const std::string &  wildCard 
)

Definition at line 36 of file algo.cpp.

References testWildCard().

bool NLMISC::testWildCard ( const char *  strIn,
const char *  wildCard 
)

return true if the string strIn verify the wildcard string wildCard.

eg: testWildCard("azert", "*")== true testWildCard("azert", "??er*")== true testWildCard("azert", "*er*")== true testWildCard("azert", "azert*")== true Undefined result if s has some '*', return false if wildcard has some "**" or "*?" NB: case-sensitive

Definition at line 43 of file algo.cpp.

Referenced by NLMISC::CEntityIdTranslator::isValidEntityName(), loadFormNoPackedSheet(), loadFormNoPackedSheet2(), NLMISC_CATEGORISED_COMMAND(), NL3D::CShapeBank::preLoadShapes(), and testWildCard().

ucchar NLMISC::toLower ( ucchar  c  ) 

Definition at line 1944 of file unicode.cpp.

References toLowerUpperSearch, and UnicodeUpperToLower.

void NLMISC::toLower ( ucchar str  ) 

Definition at line 1930 of file unicode.cpp.

References toLowerUpperSearch, and UnicodeUpperToLower.

ucstring NLMISC::toLower ( const ucstring str  ) 

Convert an unicode string in lower case.

Characters with accent are converted in a lowercase character with accent

Parameters:
a string or a char to transform to lower case

Definition at line 1913 of file unicode.cpp.

References toLowerUpperSearch, and UnicodeUpperToLower.

char NLMISC::toLower ( const char  ch  ) 

Definition at line 482 of file common.cpp.

void NLMISC::toLower ( char *  str  ) 

Definition at line 494 of file common.cpp.

std::string NLMISC::toLower ( const std::string &  str  ) 

Convert a string in lower case.

Parameters:
str a string to transform to lower case

Definition at line 468 of file common.cpp.

Referenced by NLMISC::CBigFile::add(), NL3D::CShapeBank::add(), NL3D::CShapeBank::addRef(), NLMISC::CFileContainer::addSearchBigFile(), NLMISC::CFileContainer::addSearchFile(), NLMISC::CFileContainer::addSearchXmlpackFile(), NL3D::CHLSTextureBank::addTextureInstance(), NL3D::CAsyncTextureManager::addTextureRef(), NL3D::CInstanceGroup::addToSceneAsync(), NLLIGO::CPrimitiveConfigurations::belong(), NL3D::CCoarseMeshBuild::buildBitmap(), NLMISC::CSheetId::buildSheetId(), NL3D::CShapeBank::buildSystemGeometryForshape(), NL3D::CShapeBank::cancelLoadAsync(), NLGEORGES::CFormElm::convertValue(), NL3D::CScene::createInstance(), NL3D::CScene::createInstanceAsync(), NLSOUND::IMusicBuffer::createMusicBuffer(), NLMISC::CFileContainer::exists(), NLMISC::CCommandRegistry::expand(), NL3D::CHLSTextureManager::findTexture(), NLMISC::CEntityIdTranslator::getByEntity(), NLMISC::CEntityIdTranslator::getByUser(), NLGEORGES::CFormDfn::getDependencies(), NLGEORGES::CForm::getDependencies(), NL3D::CTileBank::getDisplacementMap(), NLMISC::CBigFile::getFileInternal(), NLMISC::CBigFile::getFileNamePtr(), NLSOUND::IMusicBuffer::getInfo(), NL3D::CTileBank::getNumBitmap(), NL3D::CShapeBank::getPresentState(), NLMISC::CEntityIdTranslator::getRegisterableString(), NL3D::CShapeBank::getShape(), NL3D::CInstanceGroup::getShapeName(), NL3D::CTextureFile::getShareName(), NL3D::IDriver::getTextureShareName(), NLMISC::CSystemInfo::getVideoInfo(), NLMISC::CIXml::init(), NL3D::CLandscapeIGManager::initIG(), NLMISC::CFileContainer::insertFileInMap(), NL3D::CShapeBank::linkShapeToShapeCache(), NLMISC::CBigFile::list(), NLMISC::CEntityIdTranslator::load(), NL3D::CShapeBank::load(), NL3D::CShapeBank::loadAsync(), NLGEORGES::CFormLoader::loadForm(), NLGEORGES::CFormLoader::loadFormDfn(), NLMISC::CSheetId::loadSheetId(), NLGEORGES::CFormLoader::loadType(), NLMISC::CFileContainer::lookup(), NLNET::IService::main(), NLMISC::CFileContainer::memoryUncompress(), NLMISC::CSheetId::operator=(), NL3D::CShapeBank::preLoadShapes(), NL3D::CAnimationSet::preloadSSSShapes(), NL3D::IDriver::profileTextureUsage(), NLLIGO::CPrimitiveClass::read(), NLMISC::CEntityIdTranslator::registerEntity(), NL3D::CCoarseMeshBuild::remapCoordinates(), NLMISC::CFileContainer::remapExtension(), NLMISC::CFileContainer::remapFile(), NL3D::CDriverGL::retrieveATIDriverVersion(), NLNET::sendEmail(), NL3D::CInstanceGroup::stopAddToSceneAsync(), strlwr(), NLMISC::CSheetId::typeFromFileExtension(), NLMISC::CEntityIdTranslator::unregisterEntity(), and NLMISC::CEntityIdTranslator::updateEntity().

int NLMISC::toLowerUpperCompare ( const void *  arg1,
const void *  arg2 
)

Definition at line 1899 of file unicode.cpp.

std::string NLMISC::toString ( const std::string &  val  )  [inline]

Definition at line 212 of file string_common.h.

std::string NLMISC::toString ( const bool val  )  [inline]

Definition at line 211 of file string_common.h.

References toString().

std::string NLMISC::toString ( const double val  )  [inline]

Definition at line 210 of file string_common.h.

References toString().

std::string NLMISC::toString ( const float val  )  [inline]

Definition at line 209 of file string_common.h.

References toString().

std::string NLMISC::toString ( const long unsigned int val  )  [inline]

Definition at line 198 of file string_common.h.

References toString().

std::string NLMISC::toString ( const sint64 val  )  [inline]

Definition at line 196 of file string_common.h.

References NL_I64, and toString().

std::string NLMISC::toString ( const uint64 val  )  [inline]

Definition at line 195 of file string_common.h.

References NL_I64, and toString().

std::string NLMISC::toString ( const sint32 val  )  [inline]

Definition at line 194 of file string_common.h.

References toString().

std::string NLMISC::toString ( const uint32 val  )  [inline]

Definition at line 193 of file string_common.h.

References toString().

std::string NLMISC::toString ( const sint16 val  )  [inline]

Definition at line 192 of file string_common.h.

References toString().

std::string NLMISC::toString ( const uint16 val  )  [inline]

Definition at line 191 of file string_common.h.

References toString().

std::string NLMISC::toString ( const sint8 val  )  [inline]

Definition at line 190 of file string_common.h.

References toString().

std::string NLMISC::toString ( const uint8 val  )  [inline]

Definition at line 189 of file string_common.h.

References toString().

template<class T >
std::string NLMISC::toString ( const T obj  )  [inline]

Template Object toString.

Parameters:
obj any object providing a "std::string toString()" method. The object doesn't have to derive from anything.

the VC++ error "error C2228: left of '.toString' must have class/struct/union type" means you don't provide a toString() method to your object.

Definition at line 183 of file string_common.h.

std::string NLMISC::toString ( const char *  format,
  ... 
) [inline]

Definition at line 160 of file string_common.h.

References MaxCStringSize, and NLMISC_CONVERT_VARGS.

std::string NLMISC::toString ( NL3D::CPSEmitter::TEmissionType  type  ) 

Definition at line 2908 of file ps_emitter.cpp.

References NL3D::CPSEmitter::externEmit, NL_PS_FUNC, nlassert, nlctassert, NL3D::CPSEmitter::numEmissionType, NL3D::CPSEmitter::onBounce, NL3D::CPSEmitter::once, NL3D::CPSEmitter::onDeath, and NL3D::CPSEmitter::regular.

Referenced by NLMISC::CI18N::_readTextFile(), NL3D::CDriverD3D::activeShader(), NLLIGO::CLigoConfig::aliasToString(), NL3D::ARBVertexProgramDumpOperand(), NLNET::CInetAddress::asIPString(), NLNET::CInetAddress::asString(), NLNET::CBufSock::asString(), NLMISC::CConfigFile::CVar::asString(), NLNET::CLoginClient::authenticateBegin(), NL3D::CZoneSymmetrisation::build(), NL3D::CCoarseMeshBuild::buildBitmap(), NL3D::buildColorOperation(), NL3D::CDriverD3D::buildPixelShader(), NLMISC::CSheetId::buildSheetId(), bytesToHumanReadable(), NLMISC::CEntityIdTranslator::checkEntity(), NLNET::CModuleManager::createModule(), NLNET::CUnifiedNetwork::CUnifiedConnection::display(), NLMISC::CHTimer::CStats::display(), NLMISC::CHTimer::display(), NLMISC::CHTimer::displayByExecutionPath(), NLMISC::CInstanceCounterManager::displayCounters(), NLMISC::CWindowDisplayer::doDisplay(), NLMISC::CMemDisplayer::doDisplay(), NLMISC::CMsgBoxDisplayer::doDisplay(), NLMISC::CFileDisplayer::doDisplay(), NLMISC::CStdDisplayer::doDisplay(), NLMISC::CTaskManager::dump(), dumpOperand(), NL3D::dumpOperand(), NL3D::CDriverD3D::endProfileIBLock(), NL3D::CDriverGL::endProfileVBHardLock(), NL3D::CDriverD3D::endProfileVBHardLock(), NLMISC::CVariable< std::string >::execute(), NLGEORGES::CFormElmArray::getArrayNodeName(), NL3D::CFontManager::getCacheInformation(), getCallStack(), NLMISC::CBMSDbgInfo::getEventIdAtBitPos(), NLMISC::CBMSDbgInfo::getEventLegendAtBitPos(), NLMISC::CSystemInfo::getOS(), NLMISC::CCPUTimeStat::getPIDTicks(), NLMISC::CSystemInfo::getProc(), NLNET::CUnifiedNetwork::getServiceUnifiedName(), NLNET::IService::getServiceUnifiedName(), NLMISC::CHTimer::CStats::getStats(), NLMISC::CFile::getTemporaryOutputFilename(), NLNET::CModuleManager::getUniqueNameRoot(), NLMISC::CWordsDictionary::init(), NL3D::CVertexStreamManager::init(), NL3D::CDriverD3D::init(), NLNET::internalIPAddressToString(), NLMISC::CBitMemStream::internalSerial(), NL3D::CZoneLighter::light(), loadForm(), loadForm2(), loadFormNoPackedSheet(), loadFormNoPackedSheet2(), NLNET::IService::main(), NLMISC_CATEGORISED_COMMAND(), NLNET::NLMISC_CATEGORISED_DYNVARIABLE(), NLMISC::CSString::operator<<(), CVPParser::parse(), STRING_MANAGER::prepareStringFile(), NL3D::CDriverD3D::profileIBAllocation(), NL3D::IDriver::profileTextureUsage(), NL3D::CDriverGL::profileVBHardAllocation(), NL3D::CDriverD3D::profileVBHardAllocation(), NLNET::CTransportClass::propertyCont(), NLNET::CTransportClass::propertyVector(), NLMISC::CSString::quote(), NLNET::CNonBlockingBufSock::receivePart(), NLPACS::CGlobalRetriever::refreshLrAround(), NLPACS::CGlobalRetriever::refreshLrAroundNow(), NL3D::CCoarseMeshBuild::remapCoordinates(), NLMISC::CTaskManager::run(), NLPACS::CRetrieverBank::saveRetrievers(), secondsToHumanReadable(), NLNET::CSock::send(), NLPACS::CRetrieverBank::serial(), NL3D::CPSEmitter::setEmissionType(), NLMISC::CFileDisplayer::setParam(), NL3D::CDriverGL::setupARBVertexProgram(), NL3D::CDriverGL::setupEXTVertexShader(), NLGEORGES::CFormElm::setValueByName(), NLMISC::CMemStream::toString(), NLMISC::CHashKeyMD5::toString(), toString(), toStringEnum(), toStringPtr(), NLNET::CTransportClass::void(), NLLOGIC::CLogicCounter::write(), NLLOGIC::CLogicVariable::write(), NLLOGIC::CLogicEventAction::write(), NLLOGIC::CLogicEventMessage::write(), NLLOGIC::CLogicConditionNode::write(), NLLOGIC::CLogicConditionLogicBlock::write(), NLLOGIC::CLogicComparisonBlock::write(), NLLIGO::CPrimitives::write(), NLLIGO::IPrimitive::write(), NLLIGO::WriteFloat(), NLLIGO::WriteInt(), NLSOUND::CSoundDriverXAudio2::writeProfile(), NLSOUND::CSoundDriverFMod::writeProfile(), NLSOUND::CSoundDriverDSound::writeProfile(), NLSOUND::CAudioMixerUser::writeProfile(), NLLIGO::WriteUInt(), and NLLIGO::WriteVector().

template<class T >
std::string NLMISC::toStringEnum ( const T val  )  [inline]

Definition at line 174 of file string_common.h.

References toString().

template<class T >
std::string NLMISC::toStringPtr ( const T val  )  [inline]

Definition at line 172 of file string_common.h.

References toString().

Referenced by NLNET::CBufSock::asString().

ucchar NLMISC::toUpper ( ucchar  c  ) 

Definition at line 1986 of file unicode.cpp.

References toLowerUpperSearch, and UnicodeLowerToUpper.

void NLMISC::toUpper ( ucchar str  ) 

Definition at line 1972 of file unicode.cpp.

References toLowerUpperSearch, and UnicodeLowerToUpper.

ucstring NLMISC::toUpper ( const ucstring str  ) 

Convert an unicode string in upper case.

Characters with accent are converted in a uppercase character without accent

Parameters:
a string or a char to transform to upper case

Definition at line 1955 of file unicode.cpp.

References toLowerUpperSearch, and UnicodeLowerToUpper.

void NLMISC::toUpper ( char *  str  ) 

Definition at line 523 of file common.cpp.

std::string NLMISC::toUpper ( const std::string &  str  ) 
template<class T >
T NLMISC::trim ( const T str  )  [inline]

Definition at line 223 of file common.h.

Referenced by getCpuInfo(), and NLSOUND::getTag().

template<class T >
T NLMISC::trimRightWhiteSpaces ( const T str  )  [inline]

Definition at line 236 of file common.h.

template<class T , class U >
T NLMISC::type_cast ( o  )  [inline]

type_cast<>: this is a function which nlassert() a dynamic_cast in Debug, and just do a static_cast in release.

So slow check is made in debug, but only fast cast is made in release. Differs from safe_cast by allowinf NULL objets. (ask Stephane LE DORZE for more explanations).

Definition at line 570 of file debug.h.

References nlassert.

Referenced by NLMISC::CDbgPtr< IMixerEvent >::CDbgPtr(), NLMISC::CDbgPtr< IMixerEvent >::operator W *(), NLMISC::CDbgPtr< IMixerEvent >::operator!=(), NLMISC::CDbgPtr< IMixerEvent >::operator=(), and NLMISC::CDbgPtr< IMixerEvent >::operator==().

static uint32 NLMISC::wrap ( sint32  value,
uint32  range 
) [inline, static]

Definition at line 2849 of file bitmap.cpp.

Referenced by NLMISC::CBitmap::getColor().

void NLMISC::writePNGData ( png_structp  png_ptr,
png_bytep  data,
png_size_t  length 
)

Definition at line 440 of file bitmap_png.cpp.

Referenced by NLMISC::CBitmap::writePNG().

void NLMISC::xmlGenericErrorFuncRead ( void *  ctx,
const char *  msg,
  ... 
)

Definition at line 129 of file i_xml.cpp.

References MaxCStringSize, and NLMISC_CONVERT_VARGS.

void NLMISC::xmlGenericErrorFuncWrite ( void *  ctx,
const char *  msg,
  ... 
)

Definition at line 143 of file o_xml.cpp.

References MaxCStringSize, and NLMISC_CONVERT_VARGS.

int NLMISC::xmlOutputCloseCallbackForNeL ( void *   ) 

Definition at line 70 of file o_xml.cpp.

int NLMISC::xmlOutputWriteCallbackForNeL ( void *  context,
const char *  buffer,
int  len 
)

Definition at line 53 of file o_xml.cpp.


Variable Documentation

NLMISC::CVariablePtr<bool> NLMISC::_DisableNLDebug("nel","DisableNLDebug","Disables generation and output of nldebug logs (no code associated with the log generation is executed)",&DisableNLDebug, true)

Definition at line 753 of file path.cpp.

Referenced by NLMISC::CFileContainer::getPathContent(), isdirectory(), and isfile().

const uint32 NLMISC::BF_ALWAYS_OPENED = 0x00000001

Big file management.

Author:
Matthieu Besson
Nevrax France
Date:
2002

Definition at line 40 of file big_file.h.

Referenced by NLMISC::CBigFile::add(), and NLMISC::CFileContainer::addSearchBigFile().

Definition at line 41 of file big_file.h.

Referenced by NLMISC::CBigFile::add(), and NLMISC::CFileContainer::addSearchBigFile().

Definition at line 164 of file debug.cpp.

Referenced by isCrashAlreadyReported(), and setCrashAlreadyReported().

Definition at line 156 of file debug.cpp.

Referenced by getCallStackAndLog(), and setCrashCallback().

Definition at line 180 of file p_thread.cpp.

Referenced by NLMISC::IProcess::getCurrentProcess().

const uint32 NLMISC::DDS_HEADER = NL_MAKEFOURCC('D', 'D', 'S', ' ')

Definition at line 61 of file bitmap.h.

Referenced by NLMISC::CBitmap::load(), and NLMISC::CBitmap::loadSize().

Allow to verify an object was accessed before its destructor call.

For instance, it could be used to check if the user take care of method call return. ex: CMustConsume<TErrorCode> foo() { ... return ErrorInvalidateType; // part of TErrorCode enum. } Exclusive implementation samples: TerrorCode code=foo().consumeValue(); // Good! foo().consume(); // Good! TerrorCode code=foo(); // Mistake! foo(); // Will cause an assert at next ending brace during execution time. TerrorCode code=foo().Value(); // Will cause an assert at next ending brace during execution time. (ask Stephane LE DORZE for more explanations).

Definition at line 100 of file debug.cpp.

const uint32 NLMISC::DXT_HEADER = NL_MAKEFOURCC('D','X', 'T', '\0')

Definition at line 62 of file bitmap.h.

Definition at line 55 of file report.cpp.

Referenced by setReportEmailFunction().

CFileDisplayer* NLMISC::fd = NULL [static]
vector<CFileEntry> NLMISC::FileToCheck [static]
bool NLMISC::HasMMX = DetectMMX()

Definition at line 103 of file cpu_info.cpp.

Referenced by NLMISC::CCpuInfo___::hasMMX().

bool NLMISC::HasSSE = DetectSSE()

Definition at line 104 of file cpu_info.cpp.

Referenced by NLMISC::CCpuInfo___::hasSSE().

Definition at line 48 of file file.cpp.

Referenced by NLMISC_CATEGORISED_COMMAND(), and NLMISC::CIFile::open().

Definition at line 49 of file file.cpp.

Referenced by NLMISC_CATEGORISED_COMMAND().

const uint32 NLMISC::JPG_HEADER = NL_MAKEFOURCC(0xff, 0xd8, 0xff, 0xe0)

Definition at line 64 of file bitmap.h.

Referenced by NLMISC::CBitmap::loadSize().

Definition at line 81 of file bitmap.cpp.

const uint32 NLMISC::JPGBufferSize = 1000 [static]

Definition at line 80 of file bitmap.cpp.

Definition at line 79 of file bitmap.cpp.

const char* NLMISC::LogTypeToString[][8] [static]
Initial value:
 {
    { "", "ERR", "WRN", "INF", "DBG", "STT", "AST", "UKN" },
    { "", "Error", "Warning", "Information", "Debug", "Statistic", "Assert", "Unknown" },
    { "", "A fatal error occurs. The program must quit", "", "", "", "", "A failed assertion occurs", "" },
}

Definition at line 70 of file displayer.cpp.

Referenced by NLMISC::CMsgBoxDisplayer::doDisplay(), and NLMISC::IDisplayer::logTypeToString().

const uint32 NLMISC::MaxLineSize = 1*1024

Definition at line 19 of file xml_pack.cpp.

const uint32 NLMISC::MaxNegSint32 = ~0u/2+1 [static]

Definition at line 1421 of file sstring.cpp.

Definition at line 1422 of file sstring.cpp.

Referenced by NLMISC::CSString::atoi(), and NLMISC::CSString::atosi().

Definition at line 1423 of file sstring.cpp.

Referenced by NLMISC::CSString::atoi().

const uint64 NLMISC::MaxNegSint64 = ((uint64)0-(uint64)1)/2+1 [static]

Definition at line 1576 of file sstring.cpp.

Definition at line 1577 of file sstring.cpp.

Referenced by NLMISC::CSString::atoi64(), and NLMISC::CSString::atosi64().

Definition at line 1578 of file sstring.cpp.

Referenced by NLMISC::CSString::atoi64().

const uint32 NLMISC::MaxPosSint32 = ~0u/2 [static]

Definition at line 1425 of file sstring.cpp.

Definition at line 1426 of file sstring.cpp.

Referenced by NLMISC::CSString::atosi().

Definition at line 1427 of file sstring.cpp.

Referenced by NLMISC::CSString::atosi().

const uint64 NLMISC::MaxPosSint64 = ((uint64)0-(uint64)1)/2 [static]

Definition at line 1580 of file sstring.cpp.

Definition at line 1581 of file sstring.cpp.

Referenced by NLMISC::CSString::atosi64().

Definition at line 1582 of file sstring.cpp.

Referenced by NLMISC::CSString::atosi64().

const uint32 NLMISC::MaxUint32 = ~0u [static]

Definition at line 1417 of file sstring.cpp.

Definition at line 1418 of file sstring.cpp.

Referenced by NLMISC::CSString::atoi(), and NLMISC::CSString::atoui().

Definition at line 1419 of file sstring.cpp.

Referenced by NLMISC::CSString::atoi(), and NLMISC::CSString::atoui().

const uint64 NLMISC::MaxUint64 = (uint64)0-(uint64)1 [static]

Definition at line 1572 of file sstring.cpp.

Definition at line 1573 of file sstring.cpp.

Referenced by NLMISC::CSString::atoi64(), and NLMISC::CSString::atoui64().

Definition at line 1574 of file sstring.cpp.

Referenced by NLMISC::CSString::atoi64(), and NLMISC::CSString::atoui64().

sint32 NLMISC::n = atoi (args[0].c_str())

Definition at line 873 of file common.cpp.

Referenced by NLSOUND::CBackgroundSoundManager::addSound(), NL3D::CChannelMixer::applySkeletonWeight(), NL3D::CZone::averageTesselationVertices(), NL3D::CStaticQuadGrid< T >::build(), NL3D::CHLSColorTexture::buildColorVersion(), NLMISC::CPolygon2D::buildConvexHull(), NL3D::CMeshMRMGeom::buildGeometryForLod(), NL3D::BuildTangentSpace(), NL3D::CPortal::clipPyramid(), NLMISC::CBitSet::compareRestrict(), NL3D::CHLSColorTexture::compressBlockRGB(), NL3D::CPSCylindricVortex::computeForces(), NL3D::CHLSColorTexture::computeMinMax(), NL3D::CPatch::computeNearBlockLightmap(), NL3D::CPatchDLMContext::computeTextureFar(), NL3D::CFastHLSModifier::convertDDSBitmapDXTC1Or1A(), NL3D::CTextureDLM::copyRect(), NLSOUND::CSoundDriverDSound::countMaxSources(), NLSOUND::CSoundDriverFMod::countPlayingSources(), NLSOUND::CSoundDriverDSound::countPlayingSources(), NLMISC::CValueSmootherTemplate< bool >::CValueSmootherTemplate(), NLMISC::CValueSmootherTemplate< float >::CValueSmootherTemplate(), NLPACS::CRetrieverBank::diff(), NLPACS::COrderedChain::distance(), NLMISC::CStdDisplayer::doDisplay(), NL3D::CPSFaceLookAtHelper::drawLookAt(), NL3D::CPSEmitterConic::emit(), NL3D::CTextureDLM::fillRect(), FilterZBuffer(), NLPACS::CLocalRetriever::findPath(), NL3D::CZone::forceMergeAtTileLevel(), NLNET::CLoginCookie::generateKey(), NLLIGO::CPrimZone::getBarycentre(), NLMISC::CEntityId::getDebugString(), NL3D::CTileSet::getExistingTransitionTile(), getMD5(), getSHA1(), NL3D::CTileSet::getTransitionTile(), NL3D::CPSValueBlendSampleFunc< NLMISC::CRGBA, RGBA_BLENDER_NUM_VALUES >::getValues(), NLLOGIC::getXMLProp(), NLPACS::CGlobalRetriever::initAll(), NLPACS::CLocalRetriever::insurePosition(), NLMISC::CPolygon2D::isConvex(), NL3D::CPortal::isInFront(), itoaInt64(), NL3D::CClipTrav::loadBalanceSkeletonCLod(), NLMISC::CIFile::loadIntoCache(), ucstring::luabind_substr(), NLPACS::CGlobalRetriever::makeAllLinks(), NL3D::CPSConstraintMesh::makePrerotatedVb(), NL3D::CTextureDLM::modulateAndfillRect565(), NL3D::CTextureDLM::modulateAndfillRect8888(), NL3D::CTextureDLM::modulateConstantAndfillRect(), NLMISC::CVectorD::normalize(), NLMISC::CVector::normalize(), NLMISC::CPlane::normalize(), NL3D::CPSValueBlendSampleFunc< NLMISC::CRGBA, RGBA_BLENDER_NUM_VALUES >::operator()(), NLMISC::CCPUTimeStat::peekMeasures(), NLMISC::CLine::project(), NLSOUND::CSoundGroupSerializer::readGeorges(), NL3D::CTextureNear::refillRect(), NL3D::CZone::refineAll(), NLMISC::CFileContainer::remapExtension(), NLSOUND::CAudioMixerUser::removeSource(), NL3D::CMeshMRMSkinnedGeom::renderShadowSkinPrimitives(), NL3D::CMeshMRMGeom::renderShadowSkinPrimitives(), NLPACS::CGlobalRetriever::resetAllLinks(), NL3D::CMaterial::serial(), NL3D::CPSValueBlendSampleFunc< NLMISC::CRGBA, RGBA_BLENDER_NUM_VALUES >::serial(), NL3D::CPSValueBlendSampleFunc< NLMISC::CRGBA, RGBA_BLENDER_NUM_VALUES >::setValues(), NLPACS::CLocalRetriever::snapToInteriorGround(), NL3D::CPSFace::step(), NL3D::CHLSColorTexture::uncompressBlockRGB(), and NL3D::CPatch::unpackLumelBlock().

See CBlockMemory::Purge.

Definition at line 36 of file block_memory.cpp.

Referenced by NLMISC::CBlockMemory< CNode >::purge().

const float NLMISC::NL3D_OO255 = 1.0f / 255 [static]

Definition at line 205 of file noise_value.cpp.

const unsigned int NLMISC::NL_TASK_STACK_SIZE = 8*1024

Definition at line 39 of file co_task.h.

Referenced by NLMISC::CCoTask::start().

Definition at line 31 of file fast_floor.cpp.

Definition at line 32 of file fast_floor.cpp.

Definition at line 33 of file fast_floor.cpp.

Definition at line 33 of file fast_floor.h.

const double NLMISC::Pi = 3.1415926535897932384626433832795

Pi constant in double format.

Definition at line 89 of file common.h.

Referenced by NLPACS::CMoveContainer::addCollisionnablePrimitiveBlock(), NLLIGO::CZoneTemplate::build(), NLLIGO::CZoneEdge::buildMatrix(), NL3D::CZoneLighter::calcSkyContribution(), NL3D::CCamera::CCamera(), NL3D::CLodCharacterManager::CLodCharacterManager(), CTrackKeyFramerTCB< CKeyTCBQuat, NLMISC::CAngleAxis >::computeTCBKey(), NL3D::CPointLight::CPointLight(), NL3D::CTargetAnimCtrl::CTargetAnimCtrl(), NL3D::CVegetableManager::CVegetableManager(), NL3D::CVegetableQuadrant::CVegetableQuadrant(), NL3D::CMaterial::decompUserTexMat(), degToRad(), NL3D::CPSUtil::displayCylinder(), NL3D::CPSUtil::displayDisc(), NLSOUND::CSourceDSound::getCone(), NLPACS::CMovePrimitive::getMass(), NL3D::CZoneLighter::getMaxPhi(), NLPACS::UMoveContainer::getPACSCoordsFromMatrix(), NLSOUND::CSound::importForm(), NL3D::CZoneLighter::init(), NL3D::CTessFacePriorityList::init(), NL3D::CPSUtil::initFastCosNSinTable(), NL3D::CWaterEnvMap::initFlattenVB(), NL3D::CPSRotated2DParticle::initRotTable(), NL3D::CWaterEnvMap::initTestVB(), NL3D::CEvent3dMouseListener::operator()(), NL3D::CWaterHeightMap::perturbate(), NLPACS::CPrimitiveWorldImage::precalcBB(), radToDeg(), NL3D::CPointLight::serial(), NLSOUND::CSourceDSound::setCone(), NLSOUND::CSimpleSource::setDirection(), NL3D::CDriverGL::setLightInternal(), NL3D::CDriverD3D::setLightInternal(), NL3D::CPointLight::setupDriverLight(), NL3D::CPointLight::setupSpotAngle(), NL3D::CVegetableManager::setupVertexProgramConstants(), NL3D::CMeshVPWindTree::speedCos(), NLMISC::CQuatT< T >::squadrev(), NL3D::CMiniCol::testMove(), NL3D::CWaveMakerModel::traverseAnimDetail(), NL3D::CPointLightModel::traverseLight(), NL3D::CFlareModel::traverseRender(), and NL3D::CSpinnerFunctor::updateSamples().

const uint32 NLMISC::PNG_HEADER = NL_MAKEFOURCC(0x89, 'P', 'N', 'G')

Definition at line 63 of file bitmap.h.

Referenced by NLMISC::CBitmap::load(), and NLMISC::CBitmap::loadSize().

const double NLMISC::QuatEpsilon = 0.000001
CStdDisplayer* NLMISC::sd = NULL [static]
const int NLMISC::SEP_SIZE = 1 [static]
const char NLMISC::SEPARATOR = ' ' [static]
const char * NLMISC::SerialTypeToCStr = { "Bool ", "Ui32N", "Ui64N", "Float", "Btfld", "Buffr" }

Definition at line 43 of file bit_mem_stream.cpp.

Referenced by NLMISC::CBMSDbgInfo::getEventLegendAtBitPos().

const CStringConversion<TKey>::CPair NLMISC::stringTable[] [static]

Definition at line 35 of file events.cpp.

Definition at line 1617 of file bitmap.cpp.

return NLMISC::true

Definition at line 840 of file unicode.cpp.

Referenced by toUpper().

Definition at line 31 of file unicode.cpp.

Referenced by toLower().


Generated on Thu Jan 7 08:30:17 2010 for NeL by  doxygen 1.6.1