Blender V2.61 - r43446

BOP_Tag.cpp

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
00019  * All rights reserved.
00020  *
00021  * The Original Code is: all of this file.
00022  *
00023  * Contributor(s): none yet.
00024  *
00025  * ***** END GPL LICENSE BLOCK *****
00026  */
00027 
00033 #include "BOP_Tag.h"
00034 
00040 void BOP_stringTAG(BOP_TAG t, char *dest) {
00041   
00042   switch(t){    
00043   case IN_IN_IN:
00044     sprintf(dest, "IN_IN_IN");
00045     break;
00046   case IN_IN_ON:
00047     sprintf(dest, "IN_IN_ON");
00048     break;
00049   case IN_ON_IN:
00050     sprintf(dest, "IN_ON_IN");
00051     break;
00052   case IN_ON_ON:
00053     sprintf(dest, "IN_ON_ON");
00054     break;
00055   case ON_IN_IN:
00056     sprintf(dest, "ON_IN_IN");
00057     break;
00058   case ON_IN_ON:
00059     sprintf(dest, "ON_IN_ON");
00060     break;
00061   case ON_ON_IN:
00062     sprintf(dest, "ON_ON_IN");
00063     break;
00064   case ON_ON_ON:
00065     sprintf(dest, "ON_ON_ON");
00066     break;    
00067   case OUT_OUT_OUT:
00068     sprintf(dest, "OUT_OUT_OUT");
00069     break;
00070   case OUT_OUT_ON:
00071     sprintf(dest, "OUT_OUT_ON");
00072     break;
00073   case OUT_ON_OUT:
00074     sprintf(dest, "OUT_ON_OUT");
00075     break;
00076   case OUT_ON_ON:
00077     sprintf(dest, "OUT_ON_ON");
00078     break;
00079   case ON_OUT_OUT:
00080     sprintf(dest, "ON_OUT_OUT");
00081     break;
00082   case ON_OUT_ON:
00083     sprintf(dest, "ON_OUT_ON");
00084     break;
00085   case ON_ON_OUT:
00086     sprintf(dest, "ON_ON_OUT");
00087     break;    
00088   case OUT_OUT_IN:
00089     sprintf(dest, "OUT_OUT_IN");
00090     break;
00091   case OUT_IN_OUT:
00092     sprintf(dest, "OUT_IN_OUT");
00093     break;
00094   case OUT_IN_IN:
00095     sprintf(dest, "OUT_IN_IN");
00096     break;
00097   case IN_OUT_OUT:
00098     sprintf(dest, "IN_OUT_OUT");
00099     break;
00100   case IN_OUT_IN:
00101     sprintf(dest, "IN_OUT_IN");
00102     break;
00103   case IN_IN_OUT:
00104     sprintf(dest, "IN_IN_OUT");
00105     break;    
00106   case OUT_ON_IN:
00107     sprintf(dest, "OUT_ON_IN");
00108     break;
00109   case OUT_IN_ON:
00110     sprintf(dest, "OUT_IN_ON");
00111     break;
00112   case IN_ON_OUT:
00113     sprintf(dest, "IN_ON_OUT");
00114     break;
00115   case IN_OUT_ON:
00116     sprintf(dest, "IN_OUT_ON");
00117     break;
00118   case ON_IN_OUT:
00119     sprintf(dest, "ON_IN_OUT");
00120     break;
00121   case ON_OUT_IN:
00122     sprintf(dest, "ON_OUT_IN");
00123     break;
00124   case UNCLASSIFIED:
00125     sprintf(dest, "UNCLASSIFIED");  
00126     break;
00127   case BROKEN:
00128     sprintf(dest, "BROKEN");
00129     break;
00130   case PHANTOM:
00131     sprintf(dest, "PHANTOM");
00132     break;
00133   case OVERLAPPED:
00134     sprintf(dest, "OVERLAPPED");
00135     break;
00136   case INOUT:
00137     sprintf(dest, "INOUT");
00138     break;    
00139   default:
00140     sprintf(dest, "DESCONEGUT %d",t);
00141     break;
00142   }
00143   
00144 }