r870: Merge 2.1:
[cinelerra_cv.git] / cinelerra / channeldb.h
blobb8ee383006ebc47651ac67e1280bb77a2cb51f69
1 #ifndef CHANNELDB_H
2 #define CHANNELDB_H
4 #include "arraylist.h"
5 #include "channel.inc"
7 class ChannelDB
9 public:
10 ChannelDB();
11 ~ChannelDB();
13 void load(char *prefix);
14 void save(char *prefix);
15 void copy_from(ChannelDB *src);
16 void clear();
17 Channel* get(int number);
18 int size();
19 void append(Channel *channel);
20 void remove_number(int number);
21 void set(int number, Channel *ptr);
23 char* prefix_to_path(char *path, char *prefix);
25 ArrayList<Channel*> channels;
30 #endif