#include <BFGTLUtilities.hpp>
bool PRIVATE_IMP::CategoryNodeBase::enumerateFeatureName |
( |
const BFS64 |
index, |
|
|
BFCHAR *const |
hBuf, |
|
|
BFSIZET *const |
pSize |
|
) |
| const |
Iteratively retrieve the child feature names for the category.
- Parameters
-
[in] | index | - The feature index. |
[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
-
References BFCiException::check().
1153 BFCiException::check((*m_pd)->m_hBoard, BFGTLNodeRead(*
m_pd->m_nodePtr, BFGTL_NODE_FEATURE_NAMES,
nullptr, &iSize) );
1155 std::vector<char> iVal (iSize);
1156 BFCiException::check((*m_pd)->m_hBoard, BFGTLNodeRead(*
m_pd->m_nodePtr, BFGTL_NODE_FEATURE_NAMES, iVal.data(), &iSize) );
1158 size_t *strOffsets =
reinterpret_cast<size_t*
>(iVal.data());
1161 for (
size_t i = 0; *strOffsets; i++, strOffsets++)
1164 return BufInHelpers::set_str(&iVal[*strOffsets], hBuf, pSize);
std::vector< std::string > FeatureNames
Definition: BFGTLUtilities.hpp:461
PrivateData * m_pd
Definition: BFGTLUtilities.hpp:304
static void check(Bd hBoard, const BFU32 error)
Definition: BFException.cpp:212
BFS64 PRIVATE_IMP::CategoryNodeBase::featureCount |
( |
BFVOID |
| ) |
const |
Return the number of child features for the category.
- Returns
- The number of child features for the category.
- Exceptions
-
BFCiException | - Thrown if the node featureCount couldn't be determined. |
References BFCiException::check().
1110 size_t iSize =
sizeof(iVal);
1111 BFCiException::check((*m_pd)->m_hBoard, BFGTLNodeRead(*
m_pd->m_nodePtr, BFGTL_NODE_FEATURE_COUNT, &iVal, &iSize) );
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
Return a list of the child feature names for the category.
- Returns
- A list of the child feature names for the category.
- Exceptions
-
BFCiException | - Thrown if the node featureNames couldn't be determined. |
References BFCiException::check().
1125 BFCiException::check((*m_pd)->m_hBoard, BFGTLNodeRead(*
m_pd->m_nodePtr, BFGTL_NODE_FEATURE_NAMES,
nullptr, &iSize) );
1127 std::vector<char> iVal (iSize);
1128 BFCiException::check((*m_pd)->m_hBoard, BFGTLNodeRead(*
m_pd->m_nodePtr, BFGTL_NODE_FEATURE_NAMES, iVal.data(), &iSize) );
1130 size_t *strOffsets =
reinterpret_cast<size_t*
>(iVal.data());
1134 fNames.push_back(&iVal[*strOffsets++]);
std::vector< std::string > FeatureNames
Definition: BFGTLUtilities.hpp:461
PrivateData * m_pd
Definition: BFGTLUtilities.hpp:304
static void check(Bd hBoard, const BFU32 error)
Definition: BFException.cpp:212
Return a list of the child feature nodes for the category.
- Returns
- A list of the child feature nodes for the category.
- Exceptions
-
BFCiException | - Thrown if the node features couldn't be found and opened. |
1181 fs.push_back(
m_pd->m_nodePtr->m_device.getNode(fNames) );
FeatureNames featureNames(BFVOID) const
Definition: BFGTLUtilities.cpp:1122
PrivateData * m_pd
Definition: BFGTLUtilities.hpp:304
std::vector< Feature > Features
Definition: BFGTLUtilities.hpp:463
bool PRIVATE_IMP::CategoryNodeBase::getFeature |
( |
const BFS64 |
index, |
|
|
Feature *const |
pFeature |
|
) |
| const |
Retrieve the feature at the given index.
- Parameters
-
[in] | index | - The feature index. |
[out] | pFeature | - The feature handle pointer. |
- Returns
- True if the feature exists, false otherwise.
- Exceptions
-
1198 if (
features.size() <= (size_t)index)
1201 *pFeature =
m_pd->m_nodePtr->m_device.getNode(
features[(
size_t)index]);
FeatureNames featureNames(BFVOID) const
Definition: BFGTLUtilities.cpp:1122
Features features(BFVOID) const
Definition: BFGTLUtilities.cpp:1177
PrivateData * m_pd
Definition: BFGTLUtilities.hpp:304
The documentation for this struct was generated from the following files: