params.h

来自「此文件包含了在linux下实现tpr-tree索引的源代码」· C头文件 代码 · 共 40 行

H
40
字号
//--------------------------------------------------------------------//   params.h//   --------    //   A simple processor of parameter files//   Defined: TParams////   Moving point workload generator v 1.1//   Copyright(c) 1999-2001, Aalborg University//#ifndef __PARAMS_H#define __PARAMS_H#include <stddef.h>class TParams{public:   TParams (const char* fname);   ~TParams();   long   getInt    (const char* pname);   double getFloat  (const char* pname);   char*  getString (const char* pname);   // Returns pointer to internal buffer   void   ResetError()  { error = false; }   bool   Error() const { return error;  }   void   Silent (bool s = true) { silent = s;}protected:   char*  getRaw (const char* pname, char** end = NULL);   char*          buffer;   bool           silent;   bool           error;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?