Buffer Interface
Public Member Functions | List of all members
BFGTLUtilities::PRIVATE_IMP::EnumEntryNodeBase Struct Reference

#include <BFGTLUtilities.hpp>

Inheritance diagram for BFGTLUtilities::PRIVATE_IMP::EnumEntryNodeBase:
BFGTLUtilities::PRIVATE_IMP::ValueNodeBase BFGTLUtilities::BaseNode BFGTLUtilities::EnumEntryNode

Public Member Functions

BFS64 value (BFVOID) const
 
std::string symbolic (BFVOID) const
 
bool getSymbolic (BFCHAR *const hBuf, BFSIZET *const pSize) const
 
- Public Member Functions inherited from BFGTLUtilities::PRIVATE_IMP::ValueNodeBase
std::string toString (BFVOID) const
 
bool getToString (BFCHAR *const hBuf, BFSIZET *const pSize) const
 
BFVOID fromString (std::string const &strVal)
 
BFVOID fromString (const BFCHAR *const strVal)
 
- Public Member Functions inherited from BFGTLUtilities::BaseNode
 BaseNode (BFVOID)
 
 BaseNode (BaseNode const &to_alias)
 
 BaseNode (BaseNode &&to_take)
 
virtual ~BaseNode (BFVOID)
 
BaseNodeoperator= (BaseNode const &to_alias)
 
BaseNodeoperator= (BaseNode &&to_take)
 
bool isValid (BFVOID) const
 
 operator bool (BFVOID) const
 
bool isNull (BFVOID) const
 
bool operator! (BFVOID) const
 
bool operator== (BaseNode const &other) const
 
bool operator!= (BaseNode const &other) const
 
std::string name (BFVOID) const
 
bool getName (BFCHAR *const hBuf, BFSIZET *const pSize) const
 
std::string displayName (BFVOID) const
 
bool getDisplayName (BFCHAR *const hBuf, BFSIZET *const pSize) const
 
std::string toolTip (BFVOID) const
 
bool getToolTip (BFCHAR *const hBuf, BFSIZET *const pSize) const
 
std::string description (BFVOID) const
 
bool getDescription (BFCHAR *const hBuf, BFSIZET *const pSize) const
 
NodeType type (BFVOID) const
 
Access access (BFVOID) const
 
bool ignoreCache (BFVOID) const
 
BFVOID setIgnoreCache (const bool ignore)
 

Additional Inherited Members

- Static Public Attributes inherited from BFGTLUtilities::BaseNode
static const NodeType Type = NodeType::Base
 
- Protected Member Functions inherited from BFGTLUtilities::BaseNode
virtual void copy (BaseNode const &to_alias)
 
virtual void copy (BaseNode &&to_take)
 
- Protected Attributes inherited from BFGTLUtilities::BaseNode
PrivateData * m_pd
 

Member Function Documentation

bool PRIVATE_IMP::EnumEntryNodeBase::getSymbolic ( BFCHAR *const  hBuf,
BFSIZET *const  pSize 
) const

Return the symbolic name of the enumeration entry.

Parameters
[out]hBuf- The string buffer pointer, filled with as much data as is possible. May be nullptr.
[in,out]pSize- As input, the size of hBuf. As output, the buffer size requried.
Returns
True on success, false otherwise.
Exceptions
BFCiException- Thrown if the node entry symbolic name couldn't be determined.
1594 {
1595  return BufInHelpers::set_str(symbolic(), hBuf, pSize);
1596 }
std::string symbolic(BFVOID) const
Definition: BFGTLUtilities.cpp:1572
std::string PRIVATE_IMP::EnumEntryNodeBase::symbolic ( BFVOID  ) const

Return the symbolic name of the enumeration entry.

Returns
The symbolic name of the enumeration entry.
Exceptions
BFCiException- Thrown if the node entry symbolic name couldn't be determined.

References BFCiException::check().

1573 {
1574  size_t iSize;
1575  BFCiException::check((*m_pd)->m_hBoard, BFGTLNodeRead(*m_pd->m_nodePtr, BFGTL_NODE_SYMBOLIC, nullptr, &iSize) );
1576 
1577  std::vector<char> iVal (iSize);
1578  BFCiException::check((*m_pd)->m_hBoard, BFGTLNodeRead(*m_pd->m_nodePtr, BFGTL_NODE_SYMBOLIC, iVal.data(), &iSize) );
1579 
1580  return iVal.data();
1581 }
PrivateData * m_pd
Definition: BFGTLUtilities.hpp:304
static void check(Bd hBoard, const BFU32 error)
Definition: BFException.cpp:212
BFS64 PRIVATE_IMP::EnumEntryNodeBase::value ( BFVOID  ) const

Return the integer value of the enumeration entry.

Returns
The integer value of the enumeration entry.
Exceptions
BFCiException- Thrown if the node entry value couldn't be read.

References BFCiException::check().

1558 {
1559  BFS64 iVal;
1560  size_t iSize = sizeof(iVal);
1561  BFCiException::check((*m_pd)->m_hBoard, BFGTLNodeRead(*m_pd->m_nodePtr, BFGTL_NODE_VALUE, &iVal, &iSize) );
1562  return iVal;
1563 }
PrivateData * m_pd
Definition: BFGTLUtilities.hpp:304
static void check(Bd hBoard, const BFU32 error)
Definition: BFException.cpp:212
long long BFS64
Definition: BFTypeNT.h:54

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