MediaInfoLib  0.7
MediaInfo_Const.h
1 /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
2  *
3  * Use of this source code is governed by a BSD-style license that can
4  * be found in the License.html file in the root of the source tree.
5  */
6 
7 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8 //
9 // Global configuration of MediaInfo
10 //
11 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12 
13 //---------------------------------------------------------------------------
14 #ifndef MediaInfo_ConstH
15 #define MediaInfo_ConstH
16 //---------------------------------------------------------------------------
17 
18 //---------------------------------------------------------------------------
19 #include <sstream>
20 #include <string>
21 #include <ZenLib/Conf.h>
22 //---------------------------------------------------------------------------
23 
24 namespace MediaInfoLib
25 {
26 
27 //---------------------------------------------------------------------------
57 //---------------------------------------------------------------------------
58 
59 //---------------------------------------------------------------------------
62 {
70  Stream_Max
71 };
72 
74 enum info_t
75 {
85  Info_Max
86 };
87 
93 {
95  InfoOption_Reserved,
98  InfoOption_ShowInXml,
99  InfoOption_Max
100 };
101 
104 {
105  FileOption_Nothing =0x00,
108  FileOption_Max =0x04
109 };
110 
111 //---------------------------------------------------------------------------
112 
113 //---------------------------------------------------------------------------
114 //Char types
115 #undef __T
116 #define __T(__x) __T(__x)
117 #if defined(UNICODE) || defined (_UNICODE)
118  typedef wchar_t Char;
119  #undef __T
120  #define __T(__x) L ## __x
121 #else
122  typedef char Char;
123  #undef __T
124  #define __T(__x) __x
125 #endif
126 typedef std::basic_string<MediaInfoLib::Char> String;
127 typedef std::basic_stringstream<MediaInfoLib::Char> StringStream;
128 typedef std::basic_istringstream<MediaInfoLib::Char> tiStringStream;
129 typedef std::basic_ostringstream<MediaInfoLib::Char> toStringStream;
130 //---------------------------------------------------------------------------
131 
132 } //NameSpace
133 
134 #endif
defined(_WIN32)
std::basic_string< MediaInfoLib::Char > String
Unicode/Ansi independant string.
info_t
Kind of information.
@ Info_Text
InfoKind = Value of parameter.
@ Info_Measure_Text
InfoKind = Translated name of measure unit.
@ Info_Name
InfoKind = Unique name of parameter.
@ Info_Options
InfoKind = See infooptions_t.
@ Info_Domain
InfoKind = Domain of this piece of information.
@ Info_Name_Text
InfoKind = Translated name of parameter.
@ Info_Measure
InfoKind = Unique name of measure unit of parameter.
@ Info_Info
InfoKind = More information about the parameter.
@ Info_HowTo
InfoKind = How this parameter is supported, could be N (No), B (Beta), R (Read only),...
std::basic_istringstream< MediaInfoLib::Char > tiStringStream
Unicode/Ansi independant istringstream.
char Char
Unicode/Ansi independant char.
std::basic_stringstream< MediaInfoLib::Char > StringStream
Unicode/Ansi independant stringstream.
fileoptions_t
File opening options.
@ FileOption_CloseAll
Close all files before open.
@ FileOption_NoRecursive
Do not browse folders recursively.
std::basic_ostringstream< MediaInfoLib::Char > toStringStream
Unicode/Ansi independant ostringstream.
infooptions_t
Option if InfoKind = Info_Options.
@ InfoOption_TypeOfValue
Value return by a standard Get() can be : T (Text), I (Integer, warning up to 64 bits),...
@ InfoOption_ShowInInform
Show this parameter in Inform()
@ InfoOption_ShowInSupported
Internal use only (info : Must be showed in Info_Capacities() )
stream_t
Kinds of Stream.
@ Stream_Image
StreamKind = Image.
@ Stream_General
StreamKind = General.
@ Stream_Menu
StreamKind = Menu.
@ Stream_Text
StreamKind = Text.
@ Stream_Audio
StreamKind = Audio.
@ Stream_Other
StreamKind = Chapters.
@ Stream_Video
StreamKind = Video.