WXP version 5
Resource Reference

Resource: default

Resource default
Command Line -df=filename
Environment Variable wxpdefault
Default Value .wxpdef file in the current directory

This resource is used to specify the resource file which stores default resource values.   If this resource is not specified, the default is the file .wxpdef or Wxp.res (wxp.def for Windows) in the current working directory.  The easiest way to specify this resource is to just list the name of the resource file and its full path:

   /home/wxp/etc/.wxpdef

If the filename is left off, the program will first search for a .wxpdef file in that directory.  If that is not found, then it searches for a Wxp.res file.  

NOTE: The default resource is normally specified through the wxpdefault environment variable rather than specifying it on the command line.

Multiple Resource Files

You also specify multiple resource files, each separated by colons ":".  

   /home/wxp/etc/.wxpdef:~mike/Wxp.res

The program will process each file in the order listed so that any resources specified in the second file will take precedence over the first.

Conditional Resources

WXP allows for conditional processing of resource files.  This allows you to set up a resource file

   IF LDM
   *data_path: /home/ldm/data/ddplus   
   ELSE
   *data_path: /home/wxp/ddplus
   END

In this example, you have two redundant ingestors and you want to toggle between data being saved by the LDM and data saved by the WXP ingestor.  You can do this by setting the default resource to:

   +ldm:/home/wxp/etc/.wxpdef

This would then toggle on the first data_path specification, not the second (used if LDM not specified).


Last updated July 30, 1998