TuttleOFX
1
|
00001 #ifndef _TUTTLE_PLUGIN_LIBAV_LIBAVPRESETFILEPARSER_HPP_ 00002 #define _TUTTLE_PLUGIN_LIBAV_LIBAVPRESETFILEPARSER_HPP_ 00003 00004 #include "LibAVPresetDefinitions.hpp" 00005 00006 namespace tuttle { 00007 namespace plugin { 00008 namespace av { 00009 00010 class LibAVPresetFileParser 00011 { 00012 00013 public: 00014 LibAVPresetFileParser( const std::string& filepath ); 00015 ~LibAVPresetFileParser(); 00016 00017 static std::string getId( const std::string& filepath ); 00018 std::string getId() { return id; } 00019 std::string getIdLabel() { return idLabel; } 00020 00021 PresetParameters& getParameters() { return presetsParameters; } 00022 00023 bool idValidFile() const { return presetType != eUnknownPresetType ; } 00024 00025 void print() const; 00026 00027 protected: 00028 PresetParameters parseFile( const std::string& filepath ); 00029 00030 private: 00031 std::string id; 00032 std::string idLabel; 00033 EPresetType presetType; 00034 PresetParameters presetsParameters; 00035 }; 00036 00037 } 00038 } 00039 } 00040 00041 #endif