|
IPCC
1.0
|
This class for parsing input command file. More...
#include "KNCommandFileParser.h"

Classes | |
| struct | INPUT_CMD_PARAM |
| Structure for save input command file parsing result. More... | |
Public Types | |
| typedef struct CKNCommandFileParser::INPUT_CMD_PARAM * | LPINPUT_CMD_PARAM |
Public Member Functions | |
| CKNCommandFileParser () | |
| ~CKNCommandFileParser () | |
Static Public Member Functions | |
| static LPINPUT_CMD_PARAM | ParsingInputCommand (char *pszInputCommnadFileName) |
| Parsing Commaind file. More... | |
Static Private Member Functions | |
| static void | GetValueAfterEqualString (char *pszOption, char *pszValue) |
| Extracting string after equal charater postion. More... | |
| static void | SetOptionParam (LPINPUT_CMD_PARAM lpParam, char *pszOption, int nHash, int nOptIndex) |
| Setting option variable. More... | |
| static void | TrimString (char *pszBuffer) |
| Trim string using white spapce including ' '. More... | |
| static void | TrimStringEx (char *pszBuffer) |
| Trim string using white spapce not including ' '. More... | |
| static void | TrimSpaceEdge (char *pszBuffer) |
| Trim space both side of string. More... | |
| static void | ExtractParam (char *pszBuffer, double *pParam, int nParamSize) |
| Extracing paramter in string. More... | |
| static void | InitData (LPINPUT_CMD_PARAM lpParam) |
| Initialize some default parameter. More... | |
| static unsigned int | ExtractOptionIndex (char *pszBuffer, int nHash, int nOptIndex) |
| Get Number of Index. ex) Geometry_Origin(1)=[ 0 0 0 ], -> Get '1' from option string. More... | |
This class for parsing input command file.
Definition at line 16 of file KNCommandFileParser.h.
| CKNCommandFileParser::CKNCommandFileParser | ( | ) |
Definition at line 48 of file KNCommandFileParser.cpp.
| CKNCommandFileParser::~CKNCommandFileParser | ( | ) |
Definition at line 52 of file KNCommandFileParser.cpp.
|
staticprivate |
Get Number of Index. ex) Geometry_Origin(1)=[ 0 0 0 ], -> Get '1' from option string.
| pszBuffer | Target string |
| nHash | Hash value |
| nOptIndex | Option index |
Definition at line 520 of file KNCommandFileParser.cpp.
References g_inputOption.
Referenced by SetOptionParam().

|
staticprivate |
Extracing paramter in string.
| pszBuffer | String buffer that want to extract parameters | |
| [out] | pParam | Buffer for saving parmeters |
| nParamSize | Count that want to extract |
Definition at line 125 of file KNCommandFileParser.cpp.
Referenced by SetOptionParam().

|
staticprivate |
Extracting string after equal charater postion.
| pszOption | String that include parameter | |
| [out] | pszValue | Data buffer for saving option value |
Definition at line 438 of file KNCommandFileParser.cpp.
Referenced by SetOptionParam().

|
staticprivate |
Initialize some default parameter.
| lpParam | parameter structure for initialization |
Definition at line 508 of file KNCommandFileParser.cpp.
References CKNCommandFileParser::INPUT_CMD_PARAM::load_in_MIC, CKNCommandFileParser::INPUT_CMD_PARAM::nFindingDegeneratedEVCount, and CKNCommandFileParser::INPUT_CMD_PARAM::nMPILevel.
Referenced by ParsingInputCommand().

|
static |
Parsing Commaind file.
| pszInputCommnadFileName | Command file name |
Definition at line 446 of file KNCommandFileParser.cpp.
References g_inputOption, HASH_SARP, InitData(), MAX_INPUTOPTION_HASH_NUMBER, SetOptionParam(), and CKNCommandFileParser::INPUT_CMD_PARAM::szDataFileName.
Referenced by CKNTBMS_Solver::Launching_TBMS_Solver(), CKNGeometricConstructionLaunch::LaunchingGeometricConstruction(), and CKNGeometricConstructionLaunch::LaunchingGeometricConstructionMPI().


|
staticprivate |
Setting option variable.
| [out] | lpParam | Result of parsing |
| pszOption | String that including options | |
| nHash | Hash index A to # | |
| nOptIndex | Sub index in save Hash |
< A
< B
< C
< D
< E
< F
< G
< K
< L
< M
< N
< P
< R
< S
< U
< W
Definition at line 150 of file KNCommandFileParser.cpp.
References _X, _Y, _Z, CKNCommandFileParser::INPUT_CMD_PARAM::bCalculateEigenVectors, CKNCommandFileParser::INPUT_CMD_PARAM::bCalculateWaveFunction, CKNCommandFileParser::INPUT_CMD_PARAM::bConsiderBoundaryCondition, CKNCommandFileParser::INPUT_CMD_PARAM::bDoSelectiveReorthogonalization, CKNCommandFileParser::INPUT_CMD_PARAM::bNeedRotate, BOX_SHAPE, CKNCommandFileParser::INPUT_CMD_PARAM::bSaveHamiltonian, CKNCommandFileParser::INPUT_CMD_PARAM::bSaveMapFile, CKNCommandFileParser::INPUT_CMD_PARAM::bSortBeforeCSRBuilding, CKNCommandFileParser::INPUT_CMD_PARAM::bUsingCubeModel, CYLINDER_SHAPE, ExtractOptionIndex(), ExtractParam(), CKNCommandFileParser::INPUT_CMD_PARAM::fConvergeceCriteria, CKNCommandFileParser::INPUT_CMD_PARAM::fDirection, CKNCommandFileParser::INPUT_CMD_PARAM::fevMax, CKNCommandFileParser::INPUT_CMD_PARAM::fevMin, CKNCommandFileParser::INPUT_CMD_PARAM::fKPoints, CKNCommandFileParser::INPUT_CMD_PARAM::fKValueFinal, CKNCommandFileParser::INPUT_CMD_PARAM::fKValueInit, CKNCommandFileParser::INPUT_CMD_PARAM::fOrigin, CKNCommandFileParser::INPUT_CMD_PARAM::fShapeLength, CKNCommandFileParser::INPUT_CMD_PARAM::fUnitcellLength, GetValueAfterEqualString(), CKNCommandFileParser::INPUT_CMD_PARAM::load_in_MIC, CKNCommandFileParser::INPUT_CMD_PARAM::nBandSize, CKNCommandFileParser::INPUT_CMD_PARAM::nCheckEigenvalueInterval, CKNCommandFileParser::INPUT_CMD_PARAM::nDirectionSingle, CKNCommandFileParser::INPUT_CMD_PARAM::nFindingDegeneratedEVCount, CKNCommandFileParser::INPUT_CMD_PARAM::nFindingEigenValueCount, CKNCommandFileParser::INPUT_CMD_PARAM::nLanczosIterationCount, CKNCommandFileParser::INPUT_CMD_PARAM::nMatrixDemension, CKNCommandFileParser::INPUT_CMD_PARAM::nMatrixNonzeroElementCount, CKNCommandFileParser::INPUT_CMD_PARAM::nMPILevel, CKNCommandFileParser::INPUT_CMD_PARAM::nShape, CKNCommandFileParser::INPUT_CMD_PARAM::nSubDomainNumber, CKNCommandFileParser::INPUT_CMD_PARAM::szDataFileName, CKNCommandFileParser::INPUT_CMD_PARAM::szDomainMat, CKNCommandFileParser::INPUT_CMD_PARAM::szShape, CKNCommandFileParser::INPUT_CMD_PARAM::szStructureType, TrimSpaceEdge(), TrimString(), and TrimStringEx().
Referenced by ParsingInputCommand().


|
staticprivate |
Trim space both side of string.
| pszBuffer | String buffer that want to trim |
Definition at line 97 of file KNCommandFileParser.cpp.
Referenced by SetOptionParam().

|
staticprivate |
Trim string using white spapce including ' '.
| pszBuffer | String buffer that want to trim |
Definition at line 59 of file KNCommandFileParser.cpp.
Referenced by SetOptionParam().

|
staticprivate |
Trim string using white spapce not including ' '.
| pszBuffer | String buffer that want to trim |
Definition at line 78 of file KNCommandFileParser.cpp.
Referenced by SetOptionParam().
