home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / syscontr.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  837b  |  51 lines

  1. // -*- C++ -*-
  2.  
  3. #ifdef __GNUG__
  4. #pragma interface
  5. #endif
  6.  
  7. #include <LString.h>
  8.  
  9.  
  10. class Systemcalls;
  11.  
  12. ///
  13. class SystemcallsSingletoncontroller{
  14. public:
  15.     ///
  16.     class Startcontroller{
  17.     public:
  18.         ///
  19.         Startcontroller();
  20.         ///
  21.                 ~Startcontroller();
  22.         ///
  23.         static SystemcallsSingletoncontroller *GetController();
  24.         ///
  25.                 void ReduceRefcount() { refcount--; }
  26.     private:
  27.         ///
  28.         static SystemcallsSingletoncontroller *contr;
  29.         ///
  30.                 static int refcount;
  31.         };
  32.     ///
  33.     ~SystemcallsSingletoncontroller();
  34.     ///
  35.     void AddCall(Systemcalls const &newcall);
  36.     ///
  37.     void Timer();
  38.     // private: // DEC cxx does not like that (JMarc)
  39.     ///
  40.     SystemcallsSingletoncontroller();
  41. private:
  42.     ///
  43.     struct ControlledCalls {
  44.         ///
  45.         Systemcalls *call;
  46.         ///
  47.         ControlledCalls *next; };
  48.     ///
  49.     ControlledCalls *SysCalls;
  50. };
  51.