Class nptool::InputBlock
ClassList > nptool > InputBlock
Public Functions
| Type | Name |
|---|---|
| void | AddLine (std::string line) |
| void | AddLine (std::string token, std::string value) |
| void | AddSubBlock (BlockPtr sub) |
| BlockPtr | Copy () |
| void | Dump () |
| std::string | ExtractToken (std::string line, std::string separator="") |
| std::string | ExtractValue (std::string line, std::string separator="") |
| bool | GetBool (std::string Token, bool silent=false) |
| double | GetDouble (std::string Token, std::string default_unit, bool silent=false) |
| int | GetInt (std::string Token, bool silent=false) |
| std::vector< std::string > | GetLines () |
| std::string | GetMainToken () |
| std::string | GetMainValue () |
| unsigned int | GetSize () |
| std::string | GetString (std::string Token, bool silent=false) |
| std::vector< BlockPtr > | GetSubBlock (std::string Token) |
| std::string | GetToken (unsigned int i) |
| std::string | GetValue (unsigned int i) |
| std::string | GetValue (std::string Token) |
| std::vector< double > | GetVector3 (std::string Token, std::string default_unit, bool silent=false) |
| std::vector< double > | GetVectorDouble (std::string Token, std::string default_unit, bool silent=false) |
| std::vector< int > | GetVectorInt (std::string Token, bool silent=false) |
| std::vector< std::string > | GetVectorString (std::string Token, bool silent=false) |
| bool | HasToken (std::string Token) |
| bool | HasTokenList (std::vector< std::string > TokenList) |
| InputBlock () |
|
| InputBlock (std::string line) |
|
| void | SetValue (unsigned int i, std::string val) |
| ~InputBlock () |
Public Functions Documentation
function AddLine [1/2]
void nptool::InputBlock::AddLine (
std::string line
)
function AddLine [2/2]
void nptool::InputBlock::AddLine (
std::string token,
std::string value
)
function AddSubBlock
inline void nptool::InputBlock::AddSubBlock (
BlockPtr sub
)
function Copy
BlockPtr nptool::InputBlock::Copy ()
function Dump
void nptool::InputBlock::Dump ()
function ExtractToken
std::string nptool::InputBlock::ExtractToken (
std::string line,
std::string separator=""
)
function ExtractValue
std::string nptool::InputBlock::ExtractValue (
std::string line,
std::string separator=""
)
function GetBool
bool nptool::InputBlock::GetBool (
std::string Token,
bool silent=false
)
function GetDouble
double nptool::InputBlock::GetDouble (
std::string Token,
std::string default_unit,
bool silent=false
)
function GetInt
int nptool::InputBlock::GetInt (
std::string Token,
bool silent=false
)
function GetLines
inline std::vector< std::string > nptool::InputBlock::GetLines ()
function GetMainToken
inline std::string nptool::InputBlock::GetMainToken ()
function GetMainValue
inline std::string nptool::InputBlock::GetMainValue ()
function GetSize
inline unsigned int nptool::InputBlock::GetSize ()
function GetString
std::string nptool::InputBlock::GetString (
std::string Token,
bool silent=false
)
function GetSubBlock
std::vector< BlockPtr > nptool::InputBlock::GetSubBlock (
std::string Token
)
function GetToken
inline std::string nptool::InputBlock::GetToken (
unsigned int i
)
function GetValue [1/2]
inline std::string nptool::InputBlock::GetValue (
unsigned int i
)
function GetValue [2/2]
std::string nptool::InputBlock::GetValue (
std::string Token
)
function GetVector3
std::vector< double > nptool::InputBlock::GetVector3 (
std::string Token,
std::string default_unit,
bool silent=false
)
function GetVectorDouble
std::vector< double > nptool::InputBlock::GetVectorDouble (
std::string Token,
std::string default_unit,
bool silent=false
)
function GetVectorInt
std::vector< int > nptool::InputBlock::GetVectorInt (
std::string Token,
bool silent=false
)
function GetVectorString
std::vector< std::string > nptool::InputBlock::GetVectorString (
std::string Token,
bool silent=false
)
function HasToken
bool nptool::InputBlock::HasToken (
std::string Token
)
function HasTokenList
bool nptool::InputBlock::HasTokenList (
std::vector< std::string > TokenList
)
function InputBlock [1/2]
inline nptool::InputBlock::InputBlock ()
function InputBlock [2/2]
nptool::InputBlock::InputBlock (
std::string line
)
function SetValue
inline void nptool::InputBlock::SetValue (
unsigned int i,
std::string val
)
function ~InputBlock
inline nptool::InputBlock::~InputBlock ()
The documentation for this class was generated from the following file src/core/NPInputParser.h