To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Revision:

root / common / FeatureFileIndex.h @ 44:ed2befdf1e98

History | View | Annotate | Download (672 Bytes)

1
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
2

    
3
#ifndef _CLASSICAL_DATA_FEATURE_FILE_INDEX_H_
4
#define _CLASSICAL_DATA_FEATURE_FILE_INDEX_H_
5

    
6
#include "Objects.h"
7

    
8
#include <dataquay/BasicStore.h>
9

    
10
#include <QMutex>
11

    
12
namespace ClassicalData {
13

    
14
class FeatureFileIndex
15
{
16
public:
17
    static FeatureFileIndex *getInstance();
18
    
19
    FeatureFileIndex();
20
    ~FeatureFileIndex();
21

    
22
    void loadFor(TrackFile *, Dataquay::BasicStore *);
23

    
24
private:
25
    QMutex m_mutex;
26
    QString m_indexFileName;
27
    Dataquay::BasicStore *m_index;
28
    QString getIndexFileName();
29
    QString getFeatureDirectoryName();
30
    void updateIndex();
31
};
32

    
33
}
34

    
35
#endif
36

    
37

    
38