1 /*=========================================================================
3 Module: $RCSfile: bbstdStringSelect.cxx,v $
5 Date: $Date: 2009/05/14 14:43:38 $
6 Version: $Revision: 1.5 $
7 =========================================================================*/
9 /* ---------------------------------------------------------------------
11 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
12 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
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.
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
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 * ------------------------------------------------------------------------ */
32 #include "bbstdStringSelect.h"
33 #include "bbstdPackage.h"
38 BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,StringSelect)
39 BBTK_BLACK_BOX_IMPLEMENTATION(StringSelect,bbtk::AtomicBlackBox);
41 void StringSelect::bbUserSetDefaultValues()
56 void StringSelect::bbUserInitializeProcessing()
60 void StringSelect::bbUserFinalizeProcessing()
65 void StringSelect::DoProcess()
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() );