MediaInfoLib  0.7
MediaInfo_Const.h
1 // MediaInfo_Config - Configuration class
2 // Copyright (C) 2005-2012 Jerome Martinez, Zen@MediaArea.net
3 //
4 // This library is free software: you can redistribute it and/or modify it
5 // under the terms of the GNU Library General Public License as published by
6 // the Free Software Foundation, either version 2 of the License, or
7 // any later version.
8 //
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Library General Public License for more details.
13 //
14 // You should have received a copy of the GNU Library General Public License
15 // along with this library. If not, see <http://www.gnu.org/licenses/>.
16 //
17 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19 //
20 // Global configuration of MediaInfo
21 //
22 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 
24 //---------------------------------------------------------------------------
25 #ifndef MediaInfo_ConstH
26 #define MediaInfo_ConstH
27 //---------------------------------------------------------------------------
28 
29 //---------------------------------------------------------------------------
30 #include <string>
31 #include <ZenLib/Conf.h>
32 //---------------------------------------------------------------------------
33 
34 namespace MediaInfoLib
35 {
36 
37 //---------------------------------------------------------------------------
67 //---------------------------------------------------------------------------
68 
69 //---------------------------------------------------------------------------
72 {
80  Stream_Max
81 };
82 
84 enum info_t
85 {
95  Info_Max
96 };
97 
103 {
105  InfoOption_Reserved,
108  InfoOption_Max
109 };
110 
113 {
114  FileOption_Nothing =0x00,
117  FileOption_Max =0x04
118 };
119 
120 //---------------------------------------------------------------------------
121 
122 //---------------------------------------------------------------------------
123 //Char types
124 #undef __T
125 #define __T(__x) __T(__x)
126 #if defined(UNICODE) || defined (_UNICODE)
127  typedef wchar_t Char;
128  #undef __T
129  #define __T(__x) L ## __x
130 #else
131  typedef char Char;
132  #undef __T
133  #define __T(__x) __x
134 #endif
135 typedef std::basic_string<MediaInfoLib::Char> String;
136 typedef std::basic_stringstream<MediaInfoLib::Char> StringStream;
137 typedef std::basic_istringstream<MediaInfoLib::Char> tiStringStream;
138 typedef std::basic_ostringstream<MediaInfoLib::Char> toStringStream;
139 //---------------------------------------------------------------------------
140 
141 } //NameSpace
142 
143 #endif