-
Notifications
You must be signed in to change notification settings - Fork 1
/
tag-implementation.h
50 lines (38 loc) · 1.03 KB
/
tag-implementation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Copyright (c) 2013-2019 amded workers, All rights reserved.
* Terms for redistribution and use can be found in LICENCE.
*/
/**
* @file tag-implemenation.h
* @brief API for transparent tag-implementation-type id vs. label handling
*/
#ifndef INC_TAG_IMPLEMENTATION_H
#define INC_TAG_IMPLEMENTATION_H
#include <string>
enum tag_impl {
TAG_T_INVALID = -1,
TAG_T_APETAG,
TAG_T_ID3V1,
TAG_T_ID3V2,
TAG_T_NONE
};
namespace Amded {
class TagImplementation {
private:
enum tag_impl id;
std::string label;
public:
/* Default {de,con}struction */
TagImplementation();
~TagImplementation();
/* ...via id */
TagImplementation(enum tag_impl);
TagImplementation& operator=(enum tag_impl);
/* ...via string */
TagImplementation(const std::string&);
TagImplementation& operator=(const std::string&);
std::string get_label() const;
enum tag_impl get_id() const;
};
}
#endif /* INC_TAG_IMPLEMENTATION_H */