2010-01-25 21:28:29 +00:00
|
|
|
#ifndef CVBASE_H
|
|
|
|
#define CVBASE_H
|
|
|
|
|
|
|
|
#include "client.h"
|
|
|
|
#include "mapping.h"
|
|
|
|
|
|
|
|
class CVBase : protected Client
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
MappingList m_mapping_list;
|
|
|
|
bool m_ready;
|
|
|
|
tick_t m_tick;
|
2010-01-26 09:24:54 +00:00
|
|
|
std::string m_config_name;
|
2010-01-25 21:28:29 +00:00
|
|
|
|
|
|
|
sample_t **m_buffers;
|
|
|
|
|
|
|
|
MappingList::iterator m_it_begin;
|
|
|
|
MappingList::iterator m_it_end;
|
|
|
|
|
|
|
|
public:
|
|
|
|
void add_mapping(Mapping m)
|
|
|
|
{
|
|
|
|
m_mapping_list.push_back(m);
|
|
|
|
}
|
|
|
|
|
2010-01-25 21:32:59 +00:00
|
|
|
bool find(const char *name) const;
|
|
|
|
|
2010-01-26 09:24:54 +00:00
|
|
|
void set_name(const char *name)
|
|
|
|
{
|
|
|
|
m_config_name = name;
|
|
|
|
}
|
2010-01-25 21:28:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CVBASE_H
|