--- projects/cms/source/host/c++/Config.h 2001/02/26 14:42:43 1.2 +++ projects/cms/source/host/c++/Config.h 2001/02/26 14:59:54 1.3 @@ -1,7 +1,10 @@ #include #include #include // linux header for the sleep function -#include "SmallNet.h" +#ifndef SMALLNET_H /* Has the file been INCLUDE'd already? */ + #define SMALLNET_H yes + #include "SmallNet.h" +#endif using std::string; @@ -9,10 +12,14 @@ class Config { public: // public methods - Config( string serverName, int serverPort ); + Config( string serverName, int serverPort, int printDebug); int getUDPFilterPort(){ return UDPFilterPort; }; // inline function string getUDPFilterName(){ return UDPFilterName; }; // inline - int getProperty( string propertyName ); + int getIntProperty( string propertyName ); + string getStrProperty( string propertyName ); + SmallNet * getSmallNet(){ return net; }; // returns a pointer to the smallnet class + string getFilterName(){ return UDPFilterName; }; + int getFilterPort(){ return TCPFilterPort; }; // public variables @@ -28,6 +35,7 @@ class Config { // private (global) variables + int MAX_CONNECTION_ATTEMPTS; // how many times should it try? int configConnectionRetryTime; // how long to wait before retrying a connection to the // config manager if a connection cannot be established string configName; // the name of the server which will return our config @@ -41,7 +49,8 @@ class Config { int numProperties; // the number of properties which this host wants string propertyNames[20]; // an array of strings which corrisponds to... string propertyValues[20]; // these values - SmallNet net; // interface onto SmallNet + SmallNet * net; // interface onto SmallNet + int debug; // print debug info?