Warning, /include/Geant4/tools/sg/read_action 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_sg_read_action
0005 #define tools_sg_read_action
0006
0007 #include "action"
0008 #include "ifield_factory"
0009
0010 namespace tools {
0011 namespace io {
0012 class irbuf;
0013 }}
0014
0015 namespace tools {
0016 namespace sg {
0017 class node_desc;
0018 }}
0019
0020 namespace tools {
0021 namespace sg {
0022
0023 class read_action : public action {
0024 TOOLS_ACTION_NO_COPY(read_action,tools::sg::read_action,action)
0025 public:
0026 virtual io::irbuf& buffer() = 0;
0027 virtual bool get_node_desc(const std::string&,node_desc&) const = 0;
0028 virtual const ifield_factory& field_factory() const = 0;
0029 public:
0030 read_action(std::ostream& a_out)
0031 :action(a_out){}
0032 virtual ~read_action(){}
0033 protected:
0034 read_action(const read_action& a_from)
0035 :action(a_from)
0036 {}
0037 read_action& operator=(const read_action& a_from){
0038 action::operator=(a_from);
0039 return *this;
0040 }
0041 };
0042
0043 }}
0044
0045 #endif