Ignore:
Timestamp:
21/09/2007 20:48:23 (5 years ago)
Author:
chris
Message:

Refactor out command-line option processing, so that it can be extended
by subclasses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/general/lib/server/Daemon.h

    r1741 r1849  
    6868        box_time_t GetLoadedConfigModifiedTime() const; 
    6969        bool IsSingleProcess() { return mSingleProcess; } 
     70        std::string GetOptionString(); 
     71        int ProcessOption(signed int option); 
    7072         
    7173private: 
     
    7375        box_time_t GetConfigFileModifiedTime() const; 
    7476         
    75 private: 
    7677        std::string mConfigFileName; 
    7778        Configuration *mpConfiguration; 
     
    8283        bool mRunInForeground; 
    8384        bool mKeepConsoleOpenAfterFork; 
     85        bool mHaveConfigFile; 
     86        int mLogLevel; // need an int to do math with 
    8487        static Daemon *spDaemon; 
    8588}; 
Note: See TracChangeset for help on using the changeset viewer.