interpl.hh

来自「Source code for an Numeric Cmputer」· HH 代码 · 共 73 行

HH
73
字号
/********************************************************************* Description: interpl.hh*   Mechanism for building lists of arbitrary NML messages, used by*   the canonical interface and interpreter to pass planned sequences*   to the HME.**   Derived from a work by Fred Proctor & Will Shackleford** Author:* License: GPL Version 2* System: Linux*    * Copyright (c) 2004 All rights reserved.** Last change:* $Revision: 1.5 $* $Author: yabosukz $* $Date: 2005/07/08 14:11:12 $********************************************************************/#ifndef INTERP_LIST_HH#define INTERP_LIST_HH#define MAX_NML_COMMAND_SIZE 1000// these go on the interp liststruct NML_INTERP_LIST_NODE {    int line_number;		// line number it was on    union _dummy_union {	int i;	long l;	double d;	float f;	long long ll;	long double ld;    } dummy;			// paranoid alignment variable.    union _command_union {	char commandbuf[MAX_NML_COMMAND_SIZE];	// the NML command;	int i;	long l;	double d;	float f;	long long ll;	long double ld;    } command;};// here's the interp list itselfclass NML_INTERP_LIST {  public:    NML_INTERP_LIST();    ~NML_INTERP_LIST();    int set_line_number(int line);    int get_line_number();    int append(NMLmsg &);    int append(NMLmsg *);    NMLmsg *get();    void clear();    void print();    int len();  private:     LinkedList * linked_list_ptr;    NML_INTERP_LIST_NODE temp_node;	// filled in and put on the list    int next_line_number;	// line number used to fill temp_node    int line_number;		// line number of node from get()};extern NML_INTERP_LIST interp_list;	/* NML Union, for interpreter */#endif

⌨️ 快捷键说明

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