00001 /**** 00002 Hierarchical Data Objects 00003 Copyright (C) 2005-2010 Werner Van Belle 00004 http://flow.yellowcouch.org/data/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 ****/ 00020 #ifndef __loaded__data_visitor_cpp__ 00021 #define __loaded__data_visitor_cpp__ 00022 using namespace std; 00023 #line 1 "data-visitor.c++" 00024 #include "data-visitor.h" 00025 #include "numbers.h" 00026 00027 void DataVisitor::visit(Data & data) 00028 { 00029 data.visit(*this); 00030 } 00031 00032 void DataVisitor::visit(DataClass & data) 00033 { 00034 data.visit(*this); 00035 } 00036 00037 void DataVisitor::visit(Signed1 &nr) 00038 { 00039 visitSignedNumber(nr(),nr.letter()); 00040 }; 00041 00042 void DataVisitor::visit(Signed2 &nr) 00043 { 00044 visitSignedNumber(nr(),nr.letter()); 00045 }; 00046 00047 void DataVisitor::visit(Signed4 &nr) 00048 { 00049 visitSignedNumber(nr(),nr.letter()); 00050 }; 00051 00052 void DataVisitor::visit(Signed8 &nr) 00053 { 00054 visitSignedNumber(nr(),nr.letter()); 00055 }; 00056 00057 void DataVisitor::visit(Unsigned1 &nr) 00058 { 00059 visitUnsignedNumber(nr(),nr.letter()); 00060 }; 00061 00062 void DataVisitor::visit(Unsigned2 &nr) 00063 { 00064 visitUnsignedNumber(nr(),nr.letter()); 00065 }; 00066 00067 void DataVisitor::visit(Unsigned4 &nr) 00068 { 00069 visitUnsignedNumber(nr(),nr.letter()); 00070 }; 00071 00072 void DataVisitor::visit(Unsigned8 &nr) 00073 { 00074 visitUnsignedNumber(nr(),nr.letter()); 00075 }; 00076 00077 #endif // __loaded__data_visitor_cpp__