MediaInfoLib 0.7

MediaInfo_Const.h

00001 /*  Copyright (c) MediaArea.net SARL. All Rights Reserved.
00002  *
00003  *  Use of this source code is governed by a BSD-style license that can
00004  *  be found in the License.html file in the root of the source tree.
00005  */
00006 
00007 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00008 //
00009 // Global configuration of MediaInfo
00010 //
00011 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00012 
00013 //---------------------------------------------------------------------------
00014 #ifndef MediaInfo_ConstH
00015 #define MediaInfo_ConstH
00016 //---------------------------------------------------------------------------
00017 
00018 //---------------------------------------------------------------------------
00019 #include <string>
00020 #include <ZenLib/Conf.h>
00021 //---------------------------------------------------------------------------
00022 
00023 namespace MediaInfoLib
00024 {
00025 
00026 //---------------------------------------------------------------------------
00056 //---------------------------------------------------------------------------
00057 
00058 //---------------------------------------------------------------------------
00060 enum stream_t
00061 {
00062     Stream_General,                 
00063     Stream_Video,                   
00064     Stream_Audio,                   
00065     Stream_Text,                    
00066     Stream_Other,                   
00067     Stream_Image,                   
00068     Stream_Menu,                    
00069     Stream_Max
00070 };
00071 
00073 enum info_t
00074 {
00075     Info_Name,                      
00076     Info_Text,                      
00077     Info_Measure,                   
00078     Info_Options,                   
00079     Info_Name_Text,                 
00080     Info_Measure_Text,              
00081     Info_Info,                      
00082     Info_HowTo,                     
00083     Info_Domain,                    
00084     Info_Max
00085 };
00086 
00091 enum infooptions_t
00092 {
00093     InfoOption_ShowInInform,        
00094     InfoOption_Reserved,            
00095     InfoOption_ShowInSupported,     
00096     InfoOption_TypeOfValue,         
00097     InfoOption_ShowInXml,           
00098     InfoOption_Max
00099 };
00100 
00102 enum fileoptions_t
00103 {
00104     FileOption_Nothing      =0x00,
00105     FileOption_NoRecursive  =0x01,  
00106     FileOption_CloseAll     =0x02,  
00107     FileOption_Max          =0x04
00108 };
00109 
00110 //---------------------------------------------------------------------------
00111 
00112 //---------------------------------------------------------------------------
00113 //Char types
00114 #undef  __T
00115 #define __T(__x)     __T(__x)
00116 #if defined(UNICODE) || defined (_UNICODE)
00117     typedef wchar_t Char;                                               
00118     #undef  __T
00119     #define __T(__x) L ## __x
00120 #else
00121     typedef char Char;                                                  
00122     #undef  __T
00123     #define __T(__x) __x
00124 #endif
00125 typedef std::basic_string<MediaInfoLib::Char>        String;            
00126 typedef std::basic_stringstream<MediaInfoLib::Char>  StringStream;      
00127 typedef std::basic_istringstream<MediaInfoLib::Char> tiStringStream;    
00128 typedef std::basic_ostringstream<MediaInfoLib::Char> toStringStream;    
00129 //---------------------------------------------------------------------------
00130 
00131 } //NameSpace
00132 
00133 #endif