~ubuntu-branches/ubuntu/wily/mkvtoolnix/wily

« back to all changes in this revision

Viewing changes to src/common/amf.h

  • Committer: Package Import Robot
  • Author(s): Christian Marillat
  • Date: 2015-04-26 10:36:27 UTC
  • mfrom: (1.1.29) (4.2.45 sid)
  • Revision ID: package-import@ubuntu.com-20150426103627-k53p8hrai2ynikaa
Tags: 7.8.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
   mkvmerge -- utility for splicing together matroska files
3
3
   from component media subtypes
4
4
 
5
 
   Distributed under the GPL
 
5
   Distributed under the GPL v2
6
6
   see the file COPYING for details
7
7
   or visit http://www.gnu.org/copyleft/gpl.html
8
8
 
21
21
 
22
22
namespace mtx { namespace amf {
23
23
 
24
 
typedef boost::variant<double, bool, std::string> value_type_t;
25
 
typedef std::unordered_map<std::string, value_type_t> meta_data_t;
 
24
using value_type_t = boost::variant<double, bool, std::string>;
 
25
using meta_data_t  = std::unordered_map<std::string, value_type_t>;
26
26
 
27
27
class value_to_string_c: public boost::static_visitor<std::string> {
28
28
public:
41
41
 
42
42
class script_parser_c {
43
43
public:
44
 
  typedef enum {
 
44
  enum data_type_e {
45
45
    TYPE_NUMBER      = 0x00,
46
46
    TYPE_BOOL        = 0x01,
47
47
    TYPE_STRING      = 0x02,
55
55
    TYPE_ARRAY       = 0x0a,
56
56
    TYPE_DATE        = 0x0b,
57
57
    TYPE_LONG_STRING = 0x0c,
58
 
  } data_type_e;
 
58
  };
59
59
 
60
60
private:
61
61
  memory_cptr m_data_mem;