Warning, /include/Geant4/tools/store/iobj_visitor is written in an unsupported language. File is not indexed.
0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003
0004 #ifndef tools_store_iobj_visitor
0005 #define tools_store_iobj_visitor
0006
0007 #include "../typedefs"
0008
0009 #include <string>
0010 #include <vector>
0011 #include <ostream>
0012
0013 namespace tools {
0014
0015 class iobj_visitor {
0016 public:
0017 virtual ~iobj_visitor() {}
0018 public:
0019 virtual std::ostream& out() const = 0;
0020
0021 //virtual bool begin(IStorable&) = 0;
0022 //virtual bool end(IStorable&) = 0;
0023 virtual bool visit(bool&) = 0;
0024 virtual bool visit(char&) = 0;
0025 virtual bool visit(short&) = 0;
0026 virtual bool visit(int&) = 0;
0027 virtual bool visit(unsigned int&) = 0;
0028 virtual bool visit(int64&) = 0;
0029 virtual bool visit(uint64&) = 0;
0030 virtual bool visit(float&) = 0;
0031 virtual bool visit(double&) = 0;
0032 virtual bool visit(std::string&) = 0;
0033 virtual bool visit(std::vector<bool>&) = 0;
0034 virtual bool visit(std::vector<char>&) = 0;
0035 virtual bool visit(std::vector<short>&) = 0;
0036 virtual bool visit(std::vector<int>&) = 0;
0037 virtual bool visit(std::vector<int64>&) = 0;
0038 virtual bool visit(std::vector<float>&) = 0;
0039 virtual bool visit(std::vector<double>&) = 0;
0040 virtual bool visit(std::vector<unsigned char>&) = 0;
0041 virtual bool visit(std::vector<std::string>&) = 0;
0042 virtual bool visit(std::vector< std::vector<double> >&) = 0;
0043 //virtual bool visit_double(IArray&) = 0;
0044 };
0045
0046 }
0047
0048 #endif