⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 command.h

📁 此文件包含了在linux下实现tpr-tree索引的源代码
💻 H
字号:
// -*- Mode: C++ -*-//--------------------------------------------------------------------//      command.h//      ---------////      Functions for processing of user commands//      Their implementations should be distributed among two modules://        - command.cpp  (common implementations)//        - other module (application specific implementations)////      TPR-tree - Index for continuously moving objects//      July 2001 release, Aalborg University//#ifndef COMMAND_H#define COMMAND_H#include <iostream.h>#include "rtobserver.h"extern ostream& outstr;     // Reference of the stream that all the output                            // will be directed toextern FILE*    imports[];extern int      numImports;extern RTobserver obs;enum RTinfoType {it_flows, it_split, it_search, it_insert};typedef struct{  RToper      oper;  RTtimeStamp t1;  RTtimeStamp t2;  GiSTpage    rid;  RTcoord     coordslow[TPR_MAX_DIMS*2];  RTcoord     coordshigh[TPR_MAX_DIMS*2];} inputstruct;//---------------------------------------------------------------------void CommandCreate(const char *method, const char *table, int nDims);void CommandDrop();void CommandOpen(const char *table);void CommandClose();void CommandLoad(const char* data_file);void CommandSelect(inputstruct* k);void CommandDelete(inputstruct* k);void CommandInsert(inputstruct* k);void CommandParam(RTperiod param);void CommandTime (RTtimeStamp time);void CommandAdvanceTime (RTtimeStamp time = 1);void CommandPage (int page);void CommandHorizon (double U, double W);void CommandAutoHorizon (double Wfactor);void CommandAlpha (double alpha);void CommandGetPage ();void CommandBufferSize (int size);void CommandGetBufferSize ();void CommandGetParam ();void CommandGetHorizon ();void CommandGetAlpha ();void CommandGetTime ();void CommandPrint (int on);void CommandGetPrint ();void CommandStatistics (int on);void CommandGetStatistics ();void CommandOutStatistics ();void CommandOutRunningStats ();void CommandProperties (bool opt);void CommandInfoSet (RTinfoType type, int status);void CommandInfoOut (RTinfoType type);void CommandInfoGet (RTinfoType type);void CommandInfoNodes ();void CommandSplitAlgorithm (RTsettings::SplitAlgorithm alg);void CommandChooseSubtreeAlgorithm (RTsettings::ChoosesubtreeAlgorithm alg);void CommandUnionMode(RTsettings::UnionMode alg);void CommandAlgorithm(RTsettings::LoadAlgorithm alg);void CommandGetAlgorithm ();void CommandQuit ();void CommandDebug (int on);void CommandGetDebug ();void CommandHelp ();void CommandPrompt ();void CommandImport (const char *fname);void CommandOutFile (const char *fname);void CommandOutput (const char *str);//------------------------------------------------// Special commands for the visualiservoid CommandVisualize (RTvisobject what, int level = 0, RTperiod interval = 0.0);void Register (GiST* gist);void RefreshVisualiser ();void Quit ();//------------------------------------------------// User command string providerchar* GetCommandString (char* buf);#endif

⌨️ 快捷键说明

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