54 lines
797 B
C++
54 lines
797 B
C++
/* Copyright (C) 2007-2008 Erik Faye-Lund and Egbert Teeselink
|
|
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
#include <exception>
|
|
#include <cmath>
|
|
#include <cassert>
|
|
|
|
#ifdef WIN32
|
|
#include <tchar.h>
|
|
#else
|
|
#define TCHAR char
|
|
#endif
|
|
|
|
#include "track.h"
|
|
|
|
namespace sync
|
|
{
|
|
class Data
|
|
{
|
|
public:
|
|
~Data();
|
|
|
|
int
|
|
getTrackIndex(const std::basic_string<TCHAR> &name);
|
|
|
|
size_t
|
|
createTrack(const std::basic_string<TCHAR> &name);
|
|
|
|
Track &
|
|
getTrack(size_t track)
|
|
{
|
|
assert(track < tracks.size());
|
|
assert(NULL != tracks[track]);
|
|
return *tracks[track];
|
|
}
|
|
|
|
size_t
|
|
getTrackCount() const
|
|
{
|
|
return tracks.size();
|
|
}
|
|
|
|
protected:
|
|
std::vector<Track*> tracks;
|
|
};
|
|
}
|