/*********************************************************************** * * ELMER, A Computational Fluid Dynamics Program. * * Copyright 1st April 1995 - , Center for Scientific Computing, * Finland. * * All rights reserved. No part of this program may be used, * reproduced or transmitted in any form or by any means * without the written permission of CSC. * * Address: Center for Scientific Computing * Tietotie 6, P.O. BOX 405 * 02101 Espoo, Finland * Tel. +358 0 457 2001 * Telefax: +358 0 457 2302 * EMail: Jari.Jarvinen@csc.fi ************************************************************************/ /*********************************************************************** Program: ELMER Front Module: ecif_gridParameter.h Language: C++ Date: 01.10.98 Version: 1.00 Author(s): Martti Verho Revisions: Abstract: A Base class for body grid-parameter. ************************************************************************/ #ifndef _ECIF_GRID_PARAMETER_ #define _ECIF_GRID_PARAMETER_ #include "ecif_parameter.h" // ****** GridParameter class ****** class GridParameter : public Parameter { public: GridParameter(); GridParameter(int pid); GridParameter(int pid, int parent_id, char* data_string, char* param_name); int getLastId() {return last_id;} void setLastId(int lid) {last_id = lid;} const char* getArrayName() { return "GridParameter"; } const char* getEmfName() { return "Grid Parameter"; } const char* getGuiName() { return "MeshStructure"; } ecif_parameterType getParameterType() { return ECIF_GRID_PARAMETER; } int getParentEmfTag(); objectType getParentEmfType(); const char* getSifName() { return "Mesh Structure"; } int getSubParentEmfTag(); static void initClass(Model* model); void setName(char* param_name); void updateParentId(); void updateParentInfo(int parent_id); protected: static int last_id; static Model* model; }; #endif