]> Creatis software - bbtk.git/blob - packages/std/src/bbstdStringSelect.cxx
825683aff9391ba4ad9c5449706bdcfed7e92e50
[bbtk.git] / packages / std / src / bbstdStringSelect.cxx
1 /*=========================================================================                                                                               
2   Program:   bbtk
3   Module:    $RCSfile: bbstdStringSelect.cxx,v $
4   Language:  C++
5   Date:      $Date: 2009/05/14 14:43:38 $
6   Version:   $Revision: 1.5 $
7 =========================================================================*/
8
9 /* ---------------------------------------------------------------------
10
11 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
12 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
13 *
14 *  This software is governed by the CeCILL-B license under French law and 
15 *  abiding by the rules of distribution of free software. You can  use, 
16 *  modify and/ or redistribute the software under the terms of the CeCILL-B 
17 *  license as circulated by CEA, CNRS and INRIA at the following URL 
18 *  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
19 *  or in the file LICENSE.txt.
20 *
21 *  As a counterpart to the access to the source code and  rights to copy,
22 *  modify and redistribute granted by the license, users are provided only
23 *  with a limited warranty  and the software's author,  the holder of the
24 *  economic rights,  and the successive licensors  have only  limited
25 *  liability. 
26 *
27 *  The fact that you are presently reading this means that you have had
28 *  knowledge of the CeCILL-B license and that you accept its terms.
29 * ------------------------------------------------------------------------ */                                                                         
30
31
32 #include "bbstdStringSelect.h"
33 #include "bbstdPackage.h"
34
35 namespace bbstd
36 {
37
38   BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,StringSelect)
39     BBTK_BLACK_BOX_IMPLEMENTATION(StringSelect,bbtk::AtomicBlackBox);
40   
41   void StringSelect::bbUserSetDefaultValues() 
42   { 
43     bbSetInputIn(0);
44     bbSetInputIn0("");
45     bbSetInputIn1("");
46     bbSetInputIn2("");
47     bbSetInputIn3("");
48     bbSetInputIn4("");
49     bbSetInputIn5("");
50     bbSetInputIn6("");
51     bbSetInputIn7("");
52     bbSetInputIn8("");
53     bbSetInputIn9("");
54   }
55    
56   void StringSelect::bbUserInitializeProcessing() 
57   {
58   }
59   
60   void StringSelect::bbUserFinalizeProcessing() 
61   {
62   }
63     
64  
65   void StringSelect::DoProcess()
66   {
67     if (bbGetInputIn()==0) bbSetOutputOut( bbGetInputIn0() );
68     else if (bbGetInputIn()==1) bbSetOutputOut( bbGetInputIn1() );
69     else if (bbGetInputIn()==2) bbSetOutputOut( bbGetInputIn2() );
70     else if (bbGetInputIn()==3) bbSetOutputOut( bbGetInputIn3() );
71     else if (bbGetInputIn()==4) bbSetOutputOut( bbGetInputIn4() );
72     else if (bbGetInputIn()==5) bbSetOutputOut( bbGetInputIn5() );
73     else if (bbGetInputIn()==6) bbSetOutputOut( bbGetInputIn6() );
74     else if (bbGetInputIn()==7) bbSetOutputOut( bbGetInputIn7() );
75     else if (bbGetInputIn()==8) bbSetOutputOut( bbGetInputIn8() );
76     else if (bbGetInputIn()==9) bbSetOutputOut( bbGetInputIn9() );
77     
78   }
79 }
80 // EO namespace bbstd
81
82