From 68815423f7e6ebd3c1a84356f6c8a830a59f366c Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Tue, 2 Jan 2007 21:09:12 +0000 Subject: - added options -i and -p to specify port and (possibly multiple) ip(s) - moved commandline-helpstring to setup class to ease maintaining - added default library directory /usr/local/lib --- setup.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'setup.h') diff --git a/setup.h b/setup.h index d3a6027..6d08ccf 100644 --- a/setup.h +++ b/setup.h @@ -2,23 +2,36 @@ #define VDR_LIVE_SETUP_H #include +#include namespace vdrlive { class Setup { public: + typedef std::list< std::string > IpList; + static Setup& Get(); std::string const& GetLibraryPath() const { return m_libraryPath; } + int GetServerPort() const { return m_serverPort; } + IpList const& GetServerIps() const { return m_serverIps; } bool Parse( int argc, char* argv[] ); + char const* Help() const; private: Setup(); Setup( Setup const& ); + mutable std::string m_helpString; std::string m_libraryPath; + int m_serverPort; + std::list< std::string > m_serverIps; + + bool CheckLibraryPath(); + bool CheckServerPort(); + bool CheckServerIps(); }; } // namespace vdrlive -- cgit v1.2.3