Warning, /include/Geant4/tools/sg/node_desc 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_node_desc
0005 #define tools_sg_node_desc
0006
0007 #include "field_desc"
0008 #include <vector>
0009
0010 namespace tools {
0011 namespace sg {
0012
0013 class node_desc {
0014 public:
0015 node_desc()
0016 :m_class()
0017 ,m_version(0)
0018 ,m_fds()
0019 {}
0020 node_desc(const std::string& a_class,unsigned int a_version,
0021 const std::vector<field_desc>& a_fds)
0022 :m_class(a_class)
0023 ,m_version(a_version)
0024 ,m_fds(a_fds)
0025 {}
0026 virtual ~node_desc(){}
0027 public:
0028 node_desc(const node_desc& a_from)
0029 :m_class(a_from.m_class)
0030 ,m_version(a_from.m_version)
0031 ,m_fds(a_from.m_fds)
0032 {}
0033 node_desc& operator=(const node_desc& a_from){
0034 m_class = a_from.m_class;
0035 m_version = a_from.m_version;
0036 m_fds = a_from.m_fds;
0037 return *this;
0038 }
0039 public:
0040 const std::string& cls() const {return m_class;}
0041 unsigned int version() const {return m_version;}
0042 const std::vector<field_desc>& fields() const {return m_fds;}
0043 protected:
0044 std::string m_class;
0045 unsigned int m_version;
0046 std::vector<field_desc> m_fds;
0047 };
0048
0049 }}
0050
0051 #endif