#include <stdio.h>#include <string.h>Go to the source code of this file.
Classes | |
| class | SCParser |
Defines | |
| #define | MAXTAG_BUF 10000 |
| #define | MAXVAR 2000 |
| #define | MAXNAMELENGTH 500 |
| #define | protect(statement) do{statement}while(0) |
| #define | bindcommand_real(a, b, c) protect(if(strcmp(a,b)==0){c;return 0;}) |
| #define | read_buffer(fmt, type) |
| #define | output_buffer(port, ref, type) |
| #define | bindcommand(a, b, c) bindcommand_real(a,b,c) |
Enumerations | |
| enum | { INT = 10, LONG = 20, DOUBLE = 30, STRING = 100 } |
| #define bindcommand | ( | a, | |||
| b, | |||||
| c | ) | bindcommand_real(a,b,c) |
Definition at line 34 of file scparser.h.
Referenced by XGeo::exec(), VaspBox::exec(), SWFrame::exec(), BKSFrame::exec(), RODSFrame::exec(), Organizer::exec(), MEAMFrame::exec(), MDFrame::exec(), LJDIMERFrame::exec(), LJBONDFrame::exec(), LJ2Frame::exec(), IsingFrame::exec(), FSFrame::exec(), EAMFrame::exec(), and BMBFrame::exec().
| #define bindcommand_real | ( | a, | |||
| b, | |||||
| c | ) | protect(if(strcmp(a,b)==0){c;return 0;}) |
| #define MAXNAMELENGTH 500 |
Definition at line 21 of file scparser.h.
| #define MAXTAG_BUF 10000 |
Definition at line 19 of file scparser.h.
Referenced by SCParser::buffercontains(), SCParser::bufferendswith(), and SCParser::readnextstring().
| #define MAXVAR 2000 |
Definition at line 20 of file scparser.h.
| #define output_buffer | ( | port, | |||
| ref, | |||||
| type | ) |
Value:
port(varname[curn]<<" = "\ <<ref((type *)varptr[curn]))
Definition at line 30 of file scparser.h.
Referenced by SCParser::assignvar().
| #define protect | ( | statement | ) | do{statement}while(0) |
Definition at line 26 of file scparser.h.
| #define read_buffer | ( | fmt, | |||
| type | ) |
Value:
sscanf(buffer,fmt,\
((type *)(varptr[curn])+shift+offset))
Definition at line 28 of file scparser.h.
Referenced by SCParser::assignvar(), Organizer::assignvar(), and FSParam::assignvar().
| anonymous enum |
1.5.7.1