bpp-phyl  2.2.0
bpp::Nhx::Property Struct Reference

#include <Bpp/Phyl/Io/Nhx.h>

+ Collaboration diagram for bpp::Nhx::Property:

Public Member Functions

 Property (const std::string &pptName, const std::string &pptTag, bool pptOnBranch=false, short pptType=0)
 
bool operator< (const Property &ppt) const
 

Public Attributes

std::string name
 The name of the property, which will be used in parsed trees. More...
 
std::string tag
 The tag of the property, as it will be found in the tree file. More...
 
bool onBranch
 Tells if the property is a branch property instead of a node property. More...
 
short type
 The type of the property. 0 is string, 1 is integer, 2 is double, 3 is boolean. More...
 

Detailed Description

Definition at line 107 of file Nhx.h.

Constructor & Destructor Documentation

◆ Property()

bpp::Nhx::Property::Property ( const std::string &  pptName,
const std::string &  pptTag,
bool  pptOnBranch = false,
short  pptType = 0 
)
inline

Definition at line 128 of file Nhx.h.

Member Function Documentation

◆ operator<()

bool bpp::Nhx::Property::operator< ( const Property ppt) const
inline

Definition at line 131 of file Nhx.h.

References name.

Member Data Documentation

◆ name

std::string bpp::Nhx::Property::name

The name of the property, which will be used in parsed trees.

Definition at line 113 of file Nhx.h.

Referenced by operator<().

◆ onBranch

bool bpp::Nhx::Property::onBranch

Tells if the property is a branch property instead of a node property.

Definition at line 121 of file Nhx.h.

◆ tag

std::string bpp::Nhx::Property::tag

The tag of the property, as it will be found in the tree file.

Definition at line 117 of file Nhx.h.

◆ type

short bpp::Nhx::Property::type

The type of the property. 0 is string, 1 is integer, 2 is double, 3 is boolean.

Definition at line 125 of file Nhx.h.


The documentation for this struct was generated from the following file: