2 #ifndef INCLUDED__BITFLOW__B_F_G_T_L__UTILITIES__HPP
3 #define INCLUDED__BITFLOW__B_F_G_T_L__UTILITIES__HPP
5 #include "BFGTLUtilApi.h"
164 bool operator! (
BFVOID)
const;
167 operator bool (
BFVOID)
const;
183 std::vector<std::string> getNodeNames (
BFVOID)
const;
189 BFBOOL nodeExists (std::string
const& name)
const;
193 BaseNode getNode (std::string
const& name)
const;
210 Value = BFGTL_NODE_TYPE_VALUE,
211 Base = BFGTL_NODE_TYPE_BASE,
212 Integer = BFGTL_NODE_TYPE_INTEGER,
213 Boolean = BFGTL_NODE_TYPE_BOOLEAN,
214 Command = BFGTL_NODE_TYPE_COMMAND,
215 Float = BFGTL_NODE_TYPE_FLOAT,
216 String = BFGTL_NODE_TYPE_STRING,
217 Register = BFGTL_NODE_TYPE_REGISTER,
218 Category = BFGTL_NODE_TYPE_CATEGORY,
221 Port = BFGTL_NODE_TYPE_PORT,
227 Unknown = BFGTL_ACCESS_UNKNOWN,
229 NI = BFGTL_ACCESS_NI,
230 NA = BFGTL_ACCESS_NA,
231 RO = BFGTL_ACCESS_RO,
232 WO = BFGTL_ACCESS_WO,
233 RW = BFGTL_ACCESS_RW,
242 BaseNode friend ::BFGTLUtilities::Device::getNode (std::string
const& name)
const;
243 BaseNode friend ::BFGTLUtilities::Device::getNode (
const BFCHAR *
const name)
const;
262 bool isValid (
BFVOID)
const;
263 operator bool (
BFVOID)
const;
266 bool isNull (
BFVOID)
const;
267 bool operator! (
BFVOID)
const;
271 bool operator== (
BaseNode const& other)
const;
272 bool operator!= (
BaseNode const& other)
const;
275 std::string name (
BFVOID)
const;
276 bool getName (
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
279 std::string displayName (
BFVOID)
const;
280 bool getDisplayName (
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
283 std::string toolTip (
BFVOID)
const;
284 bool getToolTip (
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
287 std::string description (
BFVOID)
const;
288 bool getDescription (
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
297 bool ignoreCache (
BFVOID)
const;
298 BFVOID setIgnoreCache (
const bool ignore);
301 virtual void copy (
BaseNode const& to_alias);
302 virtual void copy (
BaseNode &&to_take);
309 namespace PRIVATE_IMP
311 template <
class NodeT, NodeType NODE_TYPE>
350 copy( std::move(to_take) );
355 virtual void copy (
BaseNode const& to_alias)
359 virtual void copy (
BaseNode &&to_take)
369 std::string toString (
BFVOID)
const;
370 bool getToString (
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
373 BFVOID fromString (std::string
const& strVal);
383 Value value (
BFVOID)
const;
384 Value minimum (
BFVOID)
const;
385 Value maximum (
BFVOID)
const;
386 Value increment (
BFVOID)
const;
389 BFVOID setValue (
const Value val);
398 Value value (
BFVOID)
const;
401 BFVOID setValue (
const Value val);
418 Value value (
BFVOID)
const;
419 Value minimum (
BFVOID)
const;
420 Value maximum (
BFVOID)
const;
421 Value increment (
BFVOID)
const;
424 BFVOID setValue (
const Value val);
433 Value value (
BFVOID)
const;
434 bool getValue (
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
438 BFVOID setValue (Value
const& val);
450 DataArray data (
BFVOID)
const;
451 void getData (
BFU8 *
const dataBuf,
const BFSIZET bufLen)
const;
454 BFVOID setData (DataArray
const& val);
468 FeatureNames featureNames (
BFVOID)
const;
469 bool enumerateFeatureName (
const BFS64 index,
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
471 Features features (
BFVOID)
const;
472 bool getFeature (
const BFS64 index, Feature *
const pFeature)
const;
489 Value entryValue (
BFVOID)
const;
491 std::string entryName (
BFVOID)
const;
492 bool getEntryName (
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
494 std::string entrySymbolic (
BFVOID)
const;
495 bool getEntrySymbolic (
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
499 EntryValues entryValues (
BFVOID)
const;
500 bool enumerateEntryValue (
const BFS64 index, Value *
const pVal)
const;
502 EntryStrings entryNames (
BFVOID)
const;
503 bool enumerateEntryName (
const BFS64 index,
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
505 EntryStrings entrySymbolics (
BFVOID)
const;
506 bool enumerateEntrySymbolic (
const BFS64 index,
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
508 Entry entry (
BFVOID)
const;
510 Entries entries (
BFVOID)
const;
511 bool enumerateEntry (
const BFS64 index, Entry *
const pEntry)
const;
514 BFVOID setEntryValue (
const Value val);
516 BFVOID setEntryName (std::string
const& name);
519 BFVOID setEntrySymbolic (std::string
const& symbolic);
529 std::string symbolic (
BFVOID)
const;
530 bool getSymbolic (
BFCHAR *
const hBuf,
BFSIZET *
const pSize)
const;
563 #endif // INCLUDED__BITFLOW__B_F_G_T_L__UTILITIES__HPP
#define BFCAPI
Definition: BFTypeNT.h:125
NodeImpT(BaseNode const &to_alias)
Definition: BFGTLUtilities.hpp:335
std::vector< Value > EntryValues
Definition: BFGTLUtilities.hpp:484
PRIVATE_IMP::NodeImpT< PRIVATE_IMP::IntegerNodeBase, NodeType::Integer > IntegerNode
Definition: BFGTLUtilities.hpp:542
static bool is_convertible(BaseNode const &other)
Definition: BFGTLUtilities.hpp:316
Base class for BFGTLUtilities::Device node access and modification.
Definition: BFGTLUtilities.hpp:237
Definition: BFGTLUtilities.hpp:534
virtual void copy(BaseNode const &to_alias)
Definition: BFGTLUtilities.cpp:416
Definition: BFGTLUtilities.hpp:443
Definition: BFGTLUtilities.hpp:480
NodeType
Definition: BFGTLUtilities.hpp:206
PRIVATE_IMP::NodeImpT< PRIVATE_IMP::RegisterNodeBase, NodeType::Register > RegisterNode
Definition: BFGTLUtilities.hpp:552
char BFCHAR
Definition: BFTypeNT.h:33
unsigned long BFU32
Definition: BFTypeNT.h:55
static const NodeType Type
Definition: BFGTLUtilities.hpp:314
Definition: BFGTLUtilities.hpp:393
Definition: BFGTLUtilities.hpp:524
Definition: BFGTLUtilities.hpp:459
PRIVATE_IMP::NodeImpT< PRIVATE_IMP::BooleanNodeBase, NodeType::Boolean > BooleanNode
Definition: BFGTLUtilities.hpp:544
PRIVATE_IMP::NodeImpT< PRIVATE_IMP::StringNodeBase, NodeType::String > StringNode
Definition: BFGTLUtilities.hpp:550
NodeImpT(NodeImpT const &to_alias)
Definition: BFGTLUtilities.hpp:328
Definition: BFGTLUtilities.hpp:428
BFS64 Value
Definition: BFGTLUtilities.hpp:380
Access
Definition: BFGTLUtilities.hpp:225
std::vector< BFU8 > DataArray
Definition: BFGTLUtilities.hpp:445
PRIVATE_IMP::NodeImpT< PRIVATE_IMP::CommandNodeBase, NodeType::Command > CommandNode
Definition: BFGTLUtilities.hpp:546
std::vector< std::string > FeatureNames
Definition: BFGTLUtilities.hpp:461
NodeImpT(BaseNode &&to_take)
Definition: BFGTLUtilities.hpp:338
BFS64 Value
Definition: BFGTLUtilities.hpp:482
PrivateData * m_pd
Definition: BFGTLUtilities.hpp:304
Definition: BFGTLUtilities.hpp:366
PRIVATE_IMP::NodeImpT< PRIVATE_IMP::CategoryNodeBase, NodeType::Category > CategoryNode
Definition: BFGTLUtilities.hpp:554
std::vector< Entry > Entries
Definition: BFGTLUtilities.hpp:486
BFDOUBLE Value
Definition: BFGTLUtilities.hpp:415
NodeImpT(NodeImpT &&to_alias)
Definition: BFGTLUtilities.hpp:331
Class library for BitFlow frame grabber acquisition.
Definition: BFGTLUtilities.hpp:114
PRIVATE_IMP::NodeImpT< PRIVATE_IMP::EnumEntryNodeBase, NodeType::EnumEntry > EnumEntryNode
Definition: BFGTLUtilities.hpp:558
std::string Value
Definition: BFGTLUtilities.hpp:430
Interface to access and modify features on a GenCam device.
Definition: BFGTLUtilities.hpp:129
NodeType type(BFVOID) const
Definition: BFGTLUtilities.cpp:639
void *** Bd
Definition: BFType.h:88
PRIVATE_IMP::NodeImpT< PRIVATE_IMP::ValueNodeBase, NodeType::Value > ValueNode
Definition: BFGTLUtilities.hpp:540
Definition: BFGTLUtilities.hpp:405
std::vector< Feature > Features
Definition: BFGTLUtilities.hpp:463
long long BFS64
Definition: BFTypeNT.h:54
BaseNode Feature
Definition: BFGTLUtilities.hpp:462
PRIVATE_IMP::NodeImpT< PRIVATE_IMP::PortNodeBase, NodeType::Port > PortNode
Definition: BFGTLUtilities.hpp:560
size_t BFSIZET
Definition: BFTypeNT.h:93
NodeImpT(BFVOID)
Definition: BFGTLUtilities.hpp:326
BFBOOL BFCAPI LibIsGood(void)
Definition: BFGTLUtilities.cpp:17
double BFDOUBLE
Definition: BFTypeNT.h:41
void BFVOID
Definition: BFTypeNT.h:32
Definition: BFGTLUtilities.hpp:312
unsigned char BFU8
Definition: BFTypeNT.h:59
Definition: BFGTLUtilities.hpp:378
NodeImpT< EnumEntryNodeBase, NodeType::EnumEntry > Entry
Definition: BFGTLUtilities.hpp:485
bool Value
Definition: BFGTLUtilities.hpp:395
Definition: BFGTLUtilities.hpp:413
std::vector< std::string > EntryStrings
Definition: BFGTLUtilities.hpp:483
Base class for buffered acquisition using a BitFlow frame grabber.
Definition: BufferInterface.h:63
int BFBOOL
Definition: BFTypeNT.h:34
PRIVATE_IMP::NodeImpT< PRIVATE_IMP::EnumerationNodeBase, NodeType::Enumeration > EnumerationNode
Definition: BFGTLUtilities.hpp:556
PRIVATE_IMP::NodeImpT< PRIVATE_IMP::FloatNodeBase, NodeType::Float > FloatNode
Definition: BFGTLUtilities.hpp:548
Class library for GenCam camera device access via BFGTL.
NodeImpT & operator=(BaseNode const &to_alias)
Definition: BFGTLUtilities.hpp:342