KCss::loadScript

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
System Library
String Library
Regular Expression Lib.
File Library
Database Library
C API
C++ API
   Embedding CSS
   Writing Libraries
   API Reference
      KCss Constructor
      KCss Destructor
      KCss::addFunc
      KCss::call
      KCss::enableTrace
      KCss::get
      KCss::isTrace
      KCss::loadLibrary
      KCss::loadScript
      KCss::set
      KCss::show
      KCss::startDate
      KCss::startTime
      KCss::varResize
      KCss::varSizeof
CSS Links
  

Overload 1

KCss& KCss::loadScript(       // load a script from file
   const IString& aFileName);   // file name

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

Overload 2

KCss& KCss::loadScript(       // load a script from istream
  const IString& 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: CSS will not load the same file/module several times; attempt to do so will be silently ignored.
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>