~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to extern/eltopo/common/bfstream.cpp

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <bfstream.h>
2
 
 
3
 
bifstream &operator>>(bifstream &input, bool &d)
4
 
{ d=(bool)input.get(); return input; } // note: on some platforms sizeof(bool)!=1
5
 
 
6
 
bifstream &operator>>(bifstream &input, char &d)
7
 
{ d=(char)input.get(); return input; }
8
 
 
9
 
bifstream &operator>>(bifstream &input, signed char &d)
10
 
{ d=(signed char)input.get(); return input; }
11
 
 
12
 
bifstream &operator>>(bifstream &input, unsigned char &d)
13
 
{ d=(unsigned char)input.get(); return input; }
14
 
 
15
 
bifstream &operator>>(bifstream &input, short int &d)
16
 
{ return input.templated_read(d); }
17
 
 
18
 
bifstream &operator>>(bifstream &input, unsigned short int &d)
19
 
{ return input.templated_read(d); }
20
 
 
21
 
bifstream &operator>>(bifstream &input, int &d)
22
 
{ return input.templated_read(d); }
23
 
 
24
 
bifstream &operator>>(bifstream &input, unsigned int &d)
25
 
{ return input.templated_read(d); }
26
 
 
27
 
bifstream &operator>>(bifstream &input, long int &d)
28
 
{ return input.templated_read(d); }
29
 
 
30
 
bifstream &operator>>(bifstream &input, unsigned long int &d)
31
 
{ return input.templated_read(d); }
32
 
 
33
 
bifstream &operator>>(bifstream &input, float &d)
34
 
{ return input.templated_read(d); }
35
 
 
36
 
bifstream &operator>>(bifstream &input, double &d)
37
 
{ return input.templated_read(d); }
38
 
 
39
 
//=============================================================================
40
 
 
41
 
bofstream &operator<<(bofstream &output, const bool &d)
42
 
{ output.put((char)d); return output; }
43
 
 
44
 
bofstream &operator<<(bofstream &output, const char &d)
45
 
{ output.put(d); return output; }
46
 
 
47
 
bofstream &operator<<(bofstream &output, const signed char &d)
48
 
{ output.put((char)d); return output; }
49
 
 
50
 
bofstream &operator<<(bofstream &output, const unsigned char &d)
51
 
{ output.put((char)d); return output; }
52
 
 
53
 
bofstream &operator<<(bofstream &output, const short int &d)
54
 
{ return output.templated_write(d); }
55
 
 
56
 
bofstream &operator<<(bofstream &output, const unsigned short int &d)
57
 
{ return output.templated_write(d); }
58
 
 
59
 
bofstream &operator<<(bofstream &output, const int &d)
60
 
{ return output.templated_write(d); }
61
 
 
62
 
bofstream &operator<<(bofstream &output, const unsigned int &d)
63
 
{ return output.templated_write(d); }
64
 
 
65
 
bofstream &operator<<(bofstream &output, const long int &d)
66
 
{ return output.templated_write(d); }
67
 
 
68
 
bofstream &operator<<(bofstream &output, const unsigned long int &d)
69
 
{ return output.templated_write(d); }
70
 
 
71
 
bofstream &operator<<(bofstream &output, const float &d)
72
 
{ return output.templated_write(d); }
73
 
 
74
 
bofstream &operator<<(bofstream &output, const double &d)
75
 
{ return output.templated_write(d); }
76