1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-07-02 14:04:22 +00:00

Import better-enums project from github and put it to use :)

Fix build and somewhat improve the dindexer-scan --help message.
This commit is contained in:
King_DuckZ 2016-04-26 20:42:34 +02:00
parent c21779adde
commit a625f69afd
10 changed files with 105 additions and 55 deletions

View file

@ -19,21 +19,22 @@
#define id700AFD0F33634ACC88079BB8853A9E13
#include "helpers/compatibility.h"
#include "enum.h"
#include <string>
namespace mchlib {
enum MediaTypes {
MediaType_CDRom = 'C',
MediaType_Directory = 'D',
MediaType_DVD = 'V',
MediaType_BluRay = 'B',
MediaType_FloppyDisk = 'F',
MediaType_HardDisk = 'H',
MediaType_IomegaZip = 'Z',
MediaType_Other = 'O'
};
BETTER_ENUM(MediaTypes, char,
CDRom = 'C',
Directory = 'D',
DVD = 'V',
BluRay = 'B',
FloppyDisk = 'F',
HardDisk = 'H',
IomegaZip = 'Z',
Other = 'O'
);
const std::string& media_type_to_str ( MediaTypes parType );
std::string media_type_to_str ( MediaTypes parType );
MediaTypes char_to_media_type ( char parMType ) a_pure;
char media_type_to_char ( MediaTypes parMType ) a_pure;
} //namespace mchlib