• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

yapet/consts.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 //
00003 // $Id: consts.h 3343 2010-09-17 18:36:31Z java $
00004 //
00005 // Copyright (C) 2009-2010  Rafael Ostertag
00006 //
00007 // This file is part of YAPET.
00008 //
00009 // YAPET is free software: you can redistribute it and/or modify it under the
00010 // terms of the GNU General Public License as published by the Free Software
00011 // Foundation, either version 3 of the License, or (at your option) any later
00012 // version.
00013 //
00014 // YAPET is distributed in the hope that it will be useful, but WITHOUT ANY
00015 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00016 // FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00017 // details.
00018 //
00019 // You should have received a copy of the GNU General Public License along with
00020 // YAPET.  If not, see <http://www.gnu.org/licenses/>.
00021 //
00022 
00029 #ifndef _CONSTS_H
00030 #define _CONSTS_H
00031 
00032 #ifdef HAVE_CONFIG_H
00033 # include <config.h>
00034 #endif
00035 
00036 #ifdef HAVE_SYS_TYPES_H
00037 # include <sys/types.h>
00038 #endif
00039 
00040 #ifdef HAVE_STRING
00041 # include <string>
00042 #endif
00043 
00044 namespace YAPET {
00045     namespace CONSTS {
00046 
00047         class Consts {
00048             private:
00050                 static const std::string default_suffix;
00052                 static const std::string default_rcfilename;
00054         static const size_t max_pwlen;
00055                 inline Consts() {}
00056                 inline ~Consts() {}
00057                 inline Consts (const Consts&) {}
00058                 inline const Consts& operator= (const Consts&) {
00059                     return *this;
00060                 }
00061 
00062             public:
00063                 static const std::string& getDefaultSuffix();
00064                 static const std::string& getDefaultRCFilename();
00065         static size_t getMaxPWLength();
00066         };
00067 
00068     }
00069 }
00070 #endif // _CONSTS_H

Generated on Sun Sep 19 2010 15:37:13 for YAPET by  doxygen 1.7.1