home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Utilities / Programming / Script Builder 1.0 / Helper Source / GOSAScript.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-12  |  1.0 KB  |  38 lines  |  [TEXT/CWIE]

  1. /***
  2.  * GOSAScript.h
  3.  *
  4.  *  A scrit.  We manage loading, compiling, and executing.
  5.  *
  6.  *  Gordon Watts (gwatts@fnal.fnal.gov) © 1995 As Is!
  7.  ***/
  8.  
  9. #pragma once
  10.  
  11. #include "GOSAID.h"
  12.  
  13. class GOSAScript : public GOSAID {
  14. public:
  15.                     GOSAScript (const GOSAScriptComponent *theComponent);
  16.                     GOSAScript (void);
  17.                     GOSAScript (const GOSAScriptComponent *theComponent, const OSAID theID);
  18.                     GOSAScript (const OSAID theID);
  19.                     GOSAScript (const GOSAScriptComponent *theComponent, const FSSpec &theFile);
  20.                     GOSAScript (const FSSpec &theFile);
  21.  
  22.     virtual            ~GOSAScript (void);
  23.  
  24.     void            LoadFromResource (const StringPtr resourceName, const OSType resType = 'scpt');
  25.  
  26.     virtual void    Execute (AEDesc &theResult);
  27.     virtual void    Execute (GOSAID &theResult);
  28.     virtual void    Execute (void);
  29.     virtual void    DoEvent (const AppleEvent &theEvent, AppleEvent &theReply) const;
  30.  
  31. protected:
  32.     void            LoadScript (const FSSpec &theFile);
  33.     void            LoadScript (const AEDesc &theScript);
  34.     void            LoadFromHandle (const Handle theHandle);
  35.  
  36.     GOSAID            *mScriptContext;
  37.  
  38. };