eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'CEnvironment':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: CEnvironment


Inheritance:

   Object
   |
   +--CEnvironment

Package:
stx:libcompat
Category:
Compatibility-VisualWorks
Version:
rev: 1.9 date: 2015/03/27 13:23:58
user: cg
file: CEnvironment.st directory: libcompat
module: stx stc-classLibrary: libcompat
Author:
Claus Gittinger

Description:


ST-80 compatibility class.
This may be required when existing code has to be ported to ST/X;
however, it may not be complete and more protocol may be added in the future.
The code here was created when public domain code (Manchester) had to
be ported to ST/X and missing classes/methods were encountered, and code added
by reasoning 'what the original class could probably do there'.

In ST/X, all OS command facilities are found in
the OperatingSystem class; have a look at the getEnvironment protocol
there.



This is an additional goody class; therefore:

THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTOR ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE CONTRIBUTOR BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.


Related information:

    OperatingSystem

Class protocol:

queries
o  argv
return the st/x commandLine arguments as an array.
Added for VW compatibility

usage example(s):

     CEnvironment argv

o  commandLine
return the st/x commands commandLine arguments as an array.
Added for VW compatibility

usage example(s):

     CEnvironment commandLine

o  getenv: variableNameString
return a shell environment variables value as a string;
ST-80 returns an empty string, if there is no such variable (sigh)

usage example(s):

     CEnvironment getenv:'HOME' 

o  install
ST-compatible protocol: dummy here



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 28 Mar 2024 11:49:55 GMT