bin_data_size.hpp

См. документацию.
00001 /*
00002 
00003 Copyright (c) 2002-2005, Yauheni Akhotnikau
00004 All rights reserved.
00005 
00006 Redistribution and use in source and binary forms, with or without
00007 modification, are permitted provided that the following conditions are met:
00008 
00009 - Redistributions of source code must retain the above copyright notice, this
00010 list of conditions and the following disclaimer.
00011 
00012 - Redistributions in binary form must reproduce the above copyright notice, this
00013 list of conditions and the following disclaimer in the documentation and/or
00014 other materials provided with the distribution.
00015 
00016 - The name of the author may not be used to endorse or promote products derived
00017 from this software without specific prior written permission.
00018 
00019 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
00020 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00021 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
00022 EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00023 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
00024 OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00025 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00026 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
00027 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
00028 OF SUCH DAMAGE.
00029 
00030 */
00031 
00037 #if !defined( _OESS_1__IO__BIN_DATA_SIZE_HPP_ )
00038 #define _OESS_1__IO__BIN_DATA_SIZE_HPP_
00039 
00040 #include <oess_1/defs/h/types.hpp>
00041 
00042 namespace oess_1 {
00043 
00044 namespace io {
00045 
00062 template< class Type >
00063 struct  bin_data_size_t {
00064 };
00065 
00067 template<>
00068 struct  bin_data_size_t< oess_1::char_t >
00069   {
00070     enum
00071       {
00072         image_size = 1
00073       };
00074   };
00075 
00077 template<>
00078 struct  bin_data_size_t< oess_1::schar_t >
00079   {
00080     enum
00081       {
00082         image_size = 1
00083       };
00084   };
00085 
00087 template<>
00088 struct  bin_data_size_t< oess_1::uchar_t >
00089   {
00090     enum
00091       {
00092         image_size = 1
00093       };
00094   };
00095 
00097 template<>
00098 struct  bin_data_size_t< oess_1::short_t >
00099   {
00100     enum
00101       {
00102         image_size = 2
00103       };
00104   };
00105 
00107 template<>
00108 struct  bin_data_size_t< oess_1::ushort_t >
00109   {
00110     enum
00111       {
00112         image_size = 2
00113       };
00114   };
00115 
00117 template<>
00118 struct  bin_data_size_t< oess_1::int_t >
00119   {
00120     enum
00121       {
00122         image_size = 4
00123       };
00124   };
00125 
00127 template<>
00128 struct  bin_data_size_t< oess_1::uint_t >
00129   {
00130     enum
00131       {
00132         image_size = 4
00133       };
00134   };
00135 
00137 template<>
00138 struct  bin_data_size_t< oess_1::single_t >
00139   {
00140     enum
00141       {
00142         image_size = 4
00143       };
00144   };
00145 
00147 template<>
00148 struct  bin_data_size_t< oess_1::double_t >
00149   {
00150     enum
00151       {
00152         image_size = 8
00153       };
00154   };
00155 
00156 } /* namespace io */
00157 
00158 } /* namespace oess_1 */
00159 
00160 #endif

Документация по ObjESSty. Последние изменения: Fri Oct 13 18:35:36 2006. Создано системой  doxygen 1.4.7
Hosted by uCoz