DefaultCommandArg.h

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------*/
00002 /* file: DefaultCommandArg.h                                              */
00003 /* Copyright INRIA 2006                                                   */
00004 /* Authors : Jean-Baptiste Silvy                                          */
00005 /* desc : access to default values for graphics arguments                 */
00006 /*------------------------------------------------------------------------*/
00007 
00008 #ifndef _DEFAULT_COMMAND_ARG_H_
00009 #define _DEFAULT_COMMAND_ARG_H_
00010 
00011 #include "machine.h"
00012 
00013 /*------------------------------------------------------------------------*/
00014 /* real default */
00015 #define DEFSTRF "081" 
00016 #define DEFSTRFN "099" 
00017 #define DEFLOGFLAGS "gnn" 
00018 
00019 /*------------------------------------------------------------------------*/
00020 /* Accessors to to default values */
00021 double * getDefRect(      void ) ;
00022 char   * getDefStrf(      void ) ;
00023 char   * getDefLegend(    void ) ;
00024 double * getDefZminMax(   void ) ;
00025 int    * getDefNax(       void ) ;
00026 int    * getDefColMinMax( void ) ;
00027 int    * getDefColOut(    void ) ;
00028 BOOL     getDefWithMesh(  void ) ;
00029 char   * getDefLogFlags(  void ) ;
00030 /*------------------------------------------------------------------------*/
00031 /* set default values by copying the newDef */
00032 void setDefRect(      const double newDef[4] ) ;
00033 void setDefStrf(      const char   newDef[4] ) ;
00034 void setDefZminMax(   const double newDef[2] ) ;
00035 void setDefNax(       const int    newDef[4] ) ;
00036 void setDefColMinMax( const int    newDef[2] ) ;
00037 void setDefColOut(    const int    newDef[2] ) ;
00038 void setDefWithMesh(        BOOL   newDef    ) ;
00039 void setDefLogFlags(  const char   newDef[4] ) ;
00040 /*------------------------------------------------------------------------*/
00041 /* change values */
00042 void reinitDefStrf(     void ) ;
00043 void reinitDefStrfN(    void ) ;
00044 void reinitDefLogFlags( void ) ;
00045 /*------------------------------------------------------------------------*/
00046 /* check if we are dealing with the default value */
00047 BOOL isDefRect(      const double * rect      ) ;
00048 BOOL isDefStrf(      const char   * strf      ) ;
00049 BOOL isDefLegend(    const char   * legend    ) ;
00050 BOOL isDefZminMax(   const double * zminmax   ) ;
00051 BOOL isDefNax(       const int    * nax       ) ;
00052 BOOL isDefColMinMax( const int    * colminmax ) ;
00053 BOOL isDefColOut(    const int    * colout    ) ;
00054 BOOL isDefWithMesh(  const BOOL     withmesh  ) ;
00055 BOOL isDefLogFlags(  const char   * logflags  ) ;
00056 /*------------------------------------------------------------------------*/
00057 
00058 #endif /* _DEFAULT_COMMAND_ARG_H_ */

Generated on Sun Mar 4 15:03:49 2007 for Scilab [trunk] by  doxygen 1.5.1