Search:

SENF Extensible Network Framework

  • Home
  • Download
  • Wiki
  • BerliOS
  • ChangeLog
  • Browse SVN
  • Bug Tracker
  • Overview
  • Examples
  • HowTos
  • Glossary
  • PPI
  • Packets
  • Scheduler
  • Socket
  • Utils
  • Console
  • Daemon
  • Logger
  • Termlib
  • Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

SysInfo.hh

Go to the documentation of this file.
00001 // $Id: SysInfo.hh 1789 2011-05-19 09:31:33Z tho $
00002 //
00003 // Copyright (C) 2010
00004 // Fraunhofer (FOKUS)
00005 // Competence Center NETwork research (NET), St. Augustin, GERMANY
00006 //     Thorsten Horstmann <tho@berlios.de>
00007 //
00008 // This program is free software; you can redistribute it and/or modify
00009 // it under the terms of the GNU General Public License as published by
00010 // the Free Software Foundation; either version 2 of the License, or
00011 // (at your option) any later version.
00012 //
00013 // This program is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
00017 //
00018 // You should have received a copy of the GNU General Public License
00019 // along with this program; if not, write to the
00020 // Free Software Foundation, Inc.,
00021 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00022 
00026 #ifndef HH_SENF_Scheduler_Console_SysInfo_
00027 #define HH_SENF_Scheduler_Console_SysInfo_ 1
00028 
00029 // Custom includes
00030 #include <list>
00031 #include <senf/Utils/singleton.hh>
00032 
00033 //-/////////////////////////////////////////////////////////////////////////////////////////////////
00034 namespace senf {
00035 namespace console {
00036 
00037     class SysInfo
00038         : public singleton<SysInfo>
00039     {
00040     public:
00041         friend class singleton<SysInfo>;
00042         using singleton<SysInfo>::instance;
00043 
00044         void addEntry(std::string const & descr, unsigned pos=-1);
00045         void dump(std::ostream & os) const;
00046 
00047         struct Proxy {
00048             Proxy(std::string const & descr, unsigned pos=-1);
00049         };
00050 
00051     private:
00052         std::list<std::string> descr_;
00053 
00054         SysInfo();
00055     };
00056 
00057 }}
00058 
00059 //-/////////////////////////////////////////////////////////////////////////////////////////////////
00060 //#include "SysInfo.cci"
00061 //#include "SysInfo.ct"
00062 //#include "SysInfo.cti"
00063 #endif

Contact: senf-dev@lists.berlios.de | © 2006-2010 Fraunhofer Institute for Open Communication Systems, Network Research