Definition of program options and problem domain configurations. More...
#include <stdio.h>
#include <vector_types.h>
Go to the source code of this file.
Classes | |
struct | MMC_medium |
This structure defines the optical properties for each medium. More... | |
struct | MMC_config |
This structure defines the problem settings (domain, filenames, session). More... | |
Defines | |
#define | MAX_PROP 256 |
#define | MAX_DETECTORS 256 |
#define | MAX_PATH_LENGTH 1024 |
#define | MAX_SESSION_LENGTH 256 |
#define | MIN(a, b) ((a)<(b)?(a):(b)) |
#define | MMCDEBUG(cfg, debugflag, outputstr) |
Typedefs | |
typedef struct MMC_medium | medium |
typedef struct MMC_config | Config |
Enumerations | |
enum | TDebugLevel { dlMove = 1, dlTracing = 2, dlBary = 4, dlWeight = 8, dlDist = 16, dlTracingEnter = 32, dlTracingExit = 64, dlEdge = 128, dlAccum = 256, dlTime = 512, dlReflect = 1024, dlProgress = 2048 } |
Functions | |
void | mcx_savedata (float *dat, int len, Config *cfg) |
void | mcx_error (int id, char *msg) |
void | mcx_loadconfig (FILE *in, Config *cfg) |
void | mcx_saveconfig (FILE *in, Config *cfg) |
void | mcx_readconfig (char *fname, Config *cfg) |
void | mcx_writeconfig (char *fname, Config *cfg) |
void | mcx_initcfg (Config *cfg) |
void | mcx_clearcfg (Config *cfg) |
void | mcx_parsecmd (int argc, char *argv[], Config *cfg) |
void | mcx_usage (char *exename) |
void | mcx_loadvolume (char *filename, Config *cfg) |
void | mcx_normalize (float field[], float scale, int fieldlen) |
int | mcx_readarg (int argc, char *argv[], int id, void *output, char *type) |
void | mcx_printlog (Config *cfg, char *str) |
int | mcx_remap (char *opt) |
int | mcx_parsedebugopt (char *debugopt) |
void | mcx_progressbar (unsigned int n, unsigned int ntotal, Config *cfg) |
Definition of program options and problem domain configurations.
#define MMCDEBUG | ( | cfg, | |||
debugflag, | |||||
outputstr | ) |
{\
if((cfg)->debuglevel & (debugflag)) {\
fprintf outputstr ;\
fflush((cfg)->flog);\
}\
}