ZCsl::loadScript

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
System library
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
   Embedding CSL
   Writing libraries
   Class interface reference
      ZCsl constructor
      ZCsl destructor
      ZCsl::addFunc
      ZCsl::addVar
      ZCsl::call
      ZCsl::callEx
      ZCsl::get
      ZCsl::loadLibrary
      ZCsl::loadScript
      ZCsl::set
      ZCsl::setTraceMode
      ZCsl::show
      ZCsl::startDateTime
      ZCsl::trace
      ZCsl::traceMode
      ZCsl::varExists
      ZCsl::varResize
      ZCsl::varSizeof
CSL links
  

Overload 1

ZCsl& ZCsl::loadScript(       // load a script from file
   const ZString& aFileName);   // file name

Compiles/loads a script from a file. If the file name is given without extension, .csl is appended. The file is searched in the directories listed in environment variable CSLPATH. If CSLPATH does not exist, the file is searched in the current working directory.

Overload 2

ZCsl& ZCsl::loadScript(       // load a script from istream
  const ZString& aFileName      // file/module name
  istream* aStr);               // input stream

Compiles/loads a script from any istream. May be used to load a script from memory instead from a file.

NOTE: CSL will not load the same file/module several times; attempt to do so will be silently ignored.

  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>