home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / utils / graphtal.lzh / Graphtal.Amiga / DeviceDriver.C < prev    next >
C/C++ Source or Header  |  1980-02-02  |  2KB  |  69 lines

  1. /*
  2.  * DeviceDriver.C - abstract base class for device drivers.
  3.  *
  4.  * Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
  5.  *                     University of Berne, Switzerland
  6.  * All rights reserved.
  7.  *
  8.  * This software may be freely copied, modified, and redistributed
  9.  * provided that this copyright notice is preserved on all copies.
  10.  *
  11.  * You may not distribute this software, in whole or in part, as part of
  12.  * any commercial product without the express consent of the authors.
  13.  *
  14.  * There is no warranty or other guarantee of fitness of this software
  15.  * for any purpose.  It is provided solely "as is".
  16.  *
  17.  */
  18.  
  19. #include "DeviceDriver.h"
  20.  
  21. //___________________________________________________________ DeviceDriver
  22.  
  23. implementTable(StringTable, rcString, anyPtr);
  24.  
  25. DeviceDriver::DeviceDriver()
  26. : primitives(0), LSystemName("Noname"),
  27.   definingMacro(0), macroNames(103), libraryNames(103),
  28.   theOptions(NULL)
  29. {}
  30.  
  31. DeviceDriver::DeviceDriver(Options* options)
  32. : primitives(0), LSystemName("Noname"),
  33.   definingMacro(0), macroNames(103), libraryNames(103),
  34.   theOptions(options)
  35. {}
  36.  
  37. DeviceDriver::~DeviceDriver(){}
  38.  
  39. void DeviceDriver::color(const Color&) {}
  40. void DeviceDriver::texture(const rcString&) {}
  41. void DeviceDriver::beginMacro(const rcString&)
  42. {
  43.   definingMacro = 1;
  44. }
  45. void DeviceDriver::endMacro()
  46. {
  47.   definingMacro = 0;
  48. }
  49. void DeviceDriver::executeMacro(const rcString&, const TransMatrix&){}
  50. void DeviceDriver::libraryObject(const rcString&, const TransMatrix&){}
  51.  
  52. int DeviceDriver::addMacroName(const rcString& macroName)
  53. {
  54.   return macroNames.insert(macroName, NULL);
  55. }
  56.  
  57. void DeviceDriver::addLibraryObjectName(const rcString& libName)
  58. {
  59.   libraryNames.insert(libName, NULL);
  60. }
  61.  
  62. void DeviceDriver::setName(const rcString& name)
  63. {
  64.   LSystemName = name;
  65. }
  66.  
  67.  
  68.  
  69.