#if !defined(_FIGURE_DESCRIPTOR_H_) #define _FIGURE_DESCRIPTOR_H_ #include "statement_list.h" #include /* A FIGURE DESCRIPTOR * IS THE DEFINITON AND THE NAME * OF A USER DEFINED FIGURE: * * figure huggy(A,B,C) { * * ... * } * * argc = 3, // three parameters * name = "huggy" * statements -> the list of statement definitions */ class figure_descriptor { private: int argc; statement_list statements; char* name; void read(istream&); figure_descriptor(const figure_descriptor&); figure_descriptor& operator=(const figure_descriptor&); public: figure_descriptor(const char*,int); list_iterator first_statement(); void add_statement(statement*); const char* get_name() const; int get_argc() const; }; #endif