chiark / gitweb /
X window size is a parameter; scale is a parameter; whether to draw original strip...
[moebius.git] / parameter.cc
1 /*
2  * Parameters library
3  */
4
5 #include "parameter.hh"
6
7 AnyParameter::AnyParameter(const char *n, const char *d) {
8   name= n; description= d;
9   next= first;
10   first= this;
11 }
12
13 AnyParameter* AnyParameter::find(const char *n) {
14   AnyParameter* search;
15   for (search= first;
16        search && strcmp(search->name,n);
17        search= search->next);
18   return search;
19 }
20
21 void AnyParameter::list() {
22   for (AnyParameter* search= first;
23        search;
24        search= search->next)
25     search->rangecheck();
26 }
27
28 AnyParameter* AnyParameter::first= 0;