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

« back to all changes in this revision

Viewing changes to intern/boolop/intern/BOP_Tag.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
 
/*
2
 
 * ***** BEGIN GPL LICENSE BLOCK *****
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or
5
 
 * modify it under the terms of the GNU General Public License
6
 
 * as published by the Free Software Foundation; either version 2
7
 
 * of the License, or (at your option) any later version.
8
 
 *
9
 
 * This program 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 General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU General Public License
15
 
 * along with this program; if not, write to the Free Software Foundation,
16
 
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
 
 *
18
 
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
19
 
 * All rights reserved.
20
 
 *
21
 
 * The Original Code is: all of this file.
22
 
 *
23
 
 * Contributor(s): none yet.
24
 
 *
25
 
 * ***** END GPL LICENSE BLOCK *****
26
 
 */
27
 
 
28
 
/** \file boolop/intern/BOP_Tag.cpp
29
 
 *  \ingroup boolopintern
30
 
 */
31
 
 
32
 
 
33
 
#include "BOP_Tag.h"
34
 
 
35
 
/**
36
 
 * Gets the tag description.
37
 
 * @param t tag
38
 
 * @param dest tag description
39
 
 */
40
 
void BOP_stringTAG(BOP_TAG t, char *dest) {
41
 
  
42
 
  switch(t){    
43
 
  case IN_IN_IN:
44
 
    sprintf(dest, "IN_IN_IN");
45
 
    break;
46
 
  case IN_IN_ON:
47
 
    sprintf(dest, "IN_IN_ON");
48
 
    break;
49
 
  case IN_ON_IN:
50
 
    sprintf(dest, "IN_ON_IN");
51
 
    break;
52
 
  case IN_ON_ON:
53
 
    sprintf(dest, "IN_ON_ON");
54
 
    break;
55
 
  case ON_IN_IN:
56
 
    sprintf(dest, "ON_IN_IN");
57
 
    break;
58
 
  case ON_IN_ON:
59
 
    sprintf(dest, "ON_IN_ON");
60
 
    break;
61
 
  case ON_ON_IN:
62
 
    sprintf(dest, "ON_ON_IN");
63
 
    break;
64
 
  case ON_ON_ON:
65
 
    sprintf(dest, "ON_ON_ON");
66
 
    break;    
67
 
  case OUT_OUT_OUT:
68
 
    sprintf(dest, "OUT_OUT_OUT");
69
 
    break;
70
 
  case OUT_OUT_ON:
71
 
    sprintf(dest, "OUT_OUT_ON");
72
 
    break;
73
 
  case OUT_ON_OUT:
74
 
    sprintf(dest, "OUT_ON_OUT");
75
 
    break;
76
 
  case OUT_ON_ON:
77
 
    sprintf(dest, "OUT_ON_ON");
78
 
    break;
79
 
  case ON_OUT_OUT:
80
 
    sprintf(dest, "ON_OUT_OUT");
81
 
    break;
82
 
  case ON_OUT_ON:
83
 
    sprintf(dest, "ON_OUT_ON");
84
 
    break;
85
 
  case ON_ON_OUT:
86
 
    sprintf(dest, "ON_ON_OUT");
87
 
    break;    
88
 
  case OUT_OUT_IN:
89
 
    sprintf(dest, "OUT_OUT_IN");
90
 
    break;
91
 
  case OUT_IN_OUT:
92
 
    sprintf(dest, "OUT_IN_OUT");
93
 
    break;
94
 
  case OUT_IN_IN:
95
 
    sprintf(dest, "OUT_IN_IN");
96
 
    break;
97
 
  case IN_OUT_OUT:
98
 
    sprintf(dest, "IN_OUT_OUT");
99
 
    break;
100
 
  case IN_OUT_IN:
101
 
    sprintf(dest, "IN_OUT_IN");
102
 
    break;
103
 
  case IN_IN_OUT:
104
 
    sprintf(dest, "IN_IN_OUT");
105
 
    break;    
106
 
  case OUT_ON_IN:
107
 
    sprintf(dest, "OUT_ON_IN");
108
 
    break;
109
 
  case OUT_IN_ON:
110
 
    sprintf(dest, "OUT_IN_ON");
111
 
    break;
112
 
  case IN_ON_OUT:
113
 
    sprintf(dest, "IN_ON_OUT");
114
 
    break;
115
 
  case IN_OUT_ON:
116
 
    sprintf(dest, "IN_OUT_ON");
117
 
    break;
118
 
  case ON_IN_OUT:
119
 
    sprintf(dest, "ON_IN_OUT");
120
 
    break;
121
 
  case ON_OUT_IN:
122
 
    sprintf(dest, "ON_OUT_IN");
123
 
    break;
124
 
  case UNCLASSIFIED:
125
 
    sprintf(dest, "UNCLASSIFIED");      
126
 
    break;
127
 
  case BROKEN:
128
 
    sprintf(dest, "BROKEN");
129
 
    break;
130
 
  case PHANTOM:
131
 
    sprintf(dest, "PHANTOM");
132
 
    break;
133
 
  case OVERLAPPED:
134
 
    sprintf(dest, "OVERLAPPED");
135
 
    break;
136
 
  case INOUT:
137
 
    sprintf(dest, "INOUT");
138
 
    break;    
139
 
  default:
140
 
    sprintf(dest, "DESCONEGUT %d",t);
141
 
    break;
142
 
  }
143
 
  
144
 
}