Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ProcessID.h File Reference

Defines ProcessID - simple little global for checking which process is currently running, kind of. (see ProcessID::getID() ). More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ProcessID
 

holds information to identify currently running process


Enumerations

enum  ProcessID::ProcessID_t {
  ProcessID::MainProcess, ProcessID::MotionProcess, ProcessID::SoundProcess, ProcessID::SimulatorProcess,
  ProcessID::NumProcesses
}
 

Holds ID number for each process.

More...

Functions

ProcessID_t ProcessID::getID ()
 returns process's ID number, subject to overriding via setIDHooks()
void ProcessID::setID (ProcessID_t id)
 sets the ID during init (be careful you know what you're doing if you call this), subject to overriding via setIDHooks()
void ProcessID::setIDHooks (ProcessID_t(*customGetID)(), void(*customSetID)(ProcessID_t id))
 allows you to override the behavior of getID and setID -- pass NULL to use default behavior
ProcessID_t ProcessID::getUnhookedID ()
 returns process's ID number from static global, the default behavior if setIDHooks was passed NULL
void ProcessID::setUnhookedID (ProcessID_t id)
 sets the ID into static global (be careful you know what you're doing if you call this), this is the default behavior if setIDHooks was passed NULL
const char * ProcessID::getIDStr (ProcessID_t pid)
 returns a string version of the name of the process
const char * ProcessID::getIDStr ()
 returns a string version of the name of the current process

Detailed Description

Defines ProcessID - simple little global for checking which process is currently running, kind of. (see ProcessID::getID() ).

Author:
ejt (Creator)

Definition in file ProcessID.h.


Tekkotsu v5.1CVS
Generated Mon May 9 04:59:01 2016 by Doxygen 1.6.3