feisty meow concerns codebase  2.140
configurable.h
Go to the documentation of this file.
1 #ifndef CONFIGURABLE_CLASS
2 #define CONFIGURABLE_CLASS
3 
4 /*****************************************************************************\
5 * *
6 * Name : configurable *
7 * Author : Chris Koeritz *
8 * *
9 *******************************************************************************
10 * Copyright (c) 2001-$now By Author. This program is free software; you can *
11 * redistribute it and/or modify it under the terms of the GNU General Public *
12 * License as published by the Free Software Foundation; either version 2 of *
13 * the License or (at your option) any later version. This is online at: *
14 * http://www.fsf.org/copyleft/gpl.html *
15 * Please send any updates to: fred@gruntose.com *
16 \*****************************************************************************/
17 
19 
29 #include <basis/contracts.h>
30 
31 
32 // forward.
33 class configuration_list;
34 
35 class configurable : public virtual root_object
36 {
37 public:
38  virtual ~configurable() {}
39 
40  DEFINE_CLASS_NAME("configurable");
41 
42  virtual void get_config(configuration_list &to_fill, bool append) const = 0;
44 
50  virtual bool set_config(const configuration_list &to_use) = 0;
52 
54 };
55 
56 #endif
57 
DEFINE_CLASS_NAME("configurable")
virtual bool set_config(const configuration_list &to_use)=0
retrieves the config items from "to_use" and stores them here.
virtual ~configurable()
Definition: configurable.h:38
virtual void get_config(configuration_list &to_fill, bool append) const =0
interprets the contents of this object as a configuration list.
bool append
Definition: makedep.cpp:110