/[ascend]/trunk/tcltk98/generic/interface/SimsProc.h
ViewVC logotype

Diff of /trunk/tcltk98/generic/interface/SimsProc.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 63 by jds, Tue Aug 2 11:20:09 2005 UTC revision 64 by johnpye, Wed Nov 30 06:06:46 2005 UTC
# Line 42  Line 42 
42  #ifndef SimsProc_module_loaded  #ifndef SimsProc_module_loaded
43  #define SimsProc_module_loaded  #define SimsProc_module_loaded
44    
 extern struct Instance *Asc_FindSimulationTop(symchar *str);  
 /**<  Return the sim pointer if there is a sim named *str. */  
   
 extern struct Instance *Asc_FindSimulationRoot(symchar *str);  
 /**<  Return the top inst pointer if there is a sim named *str. */  
   
 extern symchar *Asc_SimsFindSimulationName(CONST struct Instance *sim);  
 /**<  
  *  Return the name string of the instance given if it is in the  
  *  global sim list. Return null if not.  
  */  
   
 extern void Asc_SetCurrentSim(struct Instance *sim);  
 /**<  
  *  <!--  void Asc_SetCurrentSim;                                      -->  
  *  <!--  struct Instance *sim;                                        -->  
  *  Sets the current working simulation to the simulation given.  
  */  
   
 extern struct Instance *Asc_GetCurrentSim(void);  
 /**<  
  *  <!--  struct Instance *Asc_GetCurrentSim;                          -->  
  *  Returns the current working simulation. Makes no checks on the state  
  *  of the simulation.  
  */  
   
 extern int Asc_SimsUniqueName(symchar *str);  
 /**<  
  *  <!--  int Asc_SimsUniqueName;                                      -->  
  *  <!--  symchar *str;                                                -->  
  *  Searches the simulation list for the name of a simulation.  
  *  Returns 0 if the name was found else returns 1;  
  */  
   
 extern int Asc_SimsCmpSim(struct Instance *sim1, struct Instance *sim2);  
 /**<  
  *  <!--  int Asc_SimsCmpSim;                                          -->  
  *  <!--  struct Instance *sim1;                                       -->  
  *  <!--  struct Instance *sim2;                                       -->  
  *  Compares two simulations, based on their name. Returns 0 if the same.  
  *  Returns non-zero if different.  
  */  
   
45  extern int Asc_SimsQueryCmd(ClientData cdata, Tcl_Interp *interp,  extern int Asc_SimsQueryCmd(ClientData cdata, Tcl_Interp *interp,
46                              int argc, CONST84 char *argv[]);                              int argc, CONST84 char *argv[]);
47  /**<  /**<
# Line 187  extern int Asc_SimsUpdateInstanceCmd(Cli Line 144  extern int Asc_SimsUpdateInstanceCmd(Cli
144   *  Registered as : __sims_update qlfdid <file,type>;   *  Registered as : __sims_update qlfdid <file,type>;
145   */   */
146    
 extern void Asc_DeAllocSim(struct Instance *sim);  
 /**<  
  *  <!--  void Asc_DeAllocSim(sim);                                    -->  
  *  Deallocate a simulation instance, destroying the instnace and its  
  *  associated root instance, by  calling DestroyInstance (in instance.h).  
  *  It also frees the name string, which it owns, and cleans up any external  
  *  vars associated with the simulation.<br><br>  
  *  
  *  NOTE:  
  *  sim is the *Top* of the simulation and *not* the root. As such it  
  *  works on instances of kind SIM_INST.  
  */  
   
147  extern int Asc_SimsDestroySimulationCmd(ClientData cdata, Tcl_Interp *interp,  extern int Asc_SimsDestroySimulationCmd(ClientData cdata, Tcl_Interp *interp,
148                                          int argc, CONST84 char *argv[]);                                          int argc, CONST84 char *argv[]);
149  /**<  /**<

Legend:
Removed from v.63  
changed lines
  Added in v.64

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22