ini_roller.h

Go to the documentation of this file.
00001 #ifndef INI_ROLLER_CLASS
00002 #define INI_ROLLER_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : ini_roller                                                        *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 2001-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include "mechanisms_dll.h"
00019 
00020 #include <basis/object_base.h>
00021 
00022 // forward.
00023 class configurator;
00024 class int_roller;
00025 
00027 
00039 class MECHANISMS_CLASS_STYLE ini_roller
00040 {
00041 public:
00042   ini_roller(configurator &config, const istring &section,
00043           const istring &entry, int min, int max);
00045 
00052   virtual ~ini_roller();
00053 
00054   IMPLEMENT_CLASS_NAME("ini_roller");
00055 
00056   int next_id();
00058 
00059   int current_id() const;
00061 
00062 private:
00063   configurator &_ini;  
00064   int_roller *_ids;  
00065   istring *_section;  
00066   istring *_entry;  
00067   mutex *_lock;  
00068 };
00069 
00070 #endif
00071 

Generated on Fri Nov 28 04:29:16 2008 for HOOPLE Libraries by  doxygen 1.5.1