1 #ifndef NODE_ATTRIBUTES_H_INCLUDED
2 #define NODE_ATTRIBUTES_H_INCLUDED
22 #include <boost/property_tree/ptree.hpp>
39 bool IsFixed()
const {
return m_fixed; }
42 bool IsSam()
const {
return m_sam; }
45 virtual void ReadPtree(
const boost::property_tree::ptree& node_pt);
48 void SetFixed(
bool b){ m_fixed = b; }
51 void SetSam(
bool b) { m_sam = b; }
60 virtual boost::property_tree::ptree
ToPtree()
const;
69 #endif // end_of_include_guard
virtual boost::property_tree::ptree ToPtree() const
Convert the node attributes to a ptree.
Namespace for the core simulator.
virtual void ReadPtree(const boost::property_tree::ptree &node_pt)
Read the given ptree into the attributes.
Attributes associated with a node.