Go to the documentation of this file.
62 switch (node->GetAccessMode())
80 return "(undefined access mode)";
83 return "(cycle detection)";
96 switch (node->GetRepresentation())
99 out <<
"0x" << std::hex << value;
103 out << ((value>>24)&0xff) <<
'.' << ((value>>16)&0xff) <<
'.'
104 << ((value>>8)&0xff) <<
'.' << (value&0xff);
108 out << std::hex << ((value>>40)&0xff) <<
':' << ((value>>32)&0xff) <<
':'
109 << ((value>>24)&0xff) <<
':' << ((value>>16)&0xff) <<
':'
110 << ((value>>8)&0xff) <<
':' << (value&0xff);
123 if (node != 0 && node->GetAccessMode() !=
GenApi::NI)
125 switch (node->GetPrincipalInterfaceType())
128 std::cout << prefix <<
"Value: " << node->GetName() <<
" " << getAccessMode(node)
133 std::cout << prefix <<
"Base: " << node->GetName() <<
" " << getAccessMode(node)
139 std::cout << prefix <<
"Integer: " << node->GetName() <<
" "
140 << getAccessMode(node) <<
" ";
146 std::cout <<
"[" <<
formatValue(p, p->GetMin()) <<
", "
148 std::cout <<
formatValue(p, p->GetValue()) <<
" " << p->GetUnit();
151 std::cout << std::endl;
157 std::cout << prefix <<
"Boolean: " << node->GetName() <<
" " << getAccessMode(node);
163 std::cout <<
": " << p->GetValue();
166 std::cout << std::endl;
171 std::cout << prefix <<
"Command: " << node->GetName() <<
" " << getAccessMode(node)
177 std::cout << prefix <<
"Float: " << node->GetName() <<
" " << getAccessMode(node)
184 std::cout <<
"[" << p->GetMin() <<
", "
185 << p->GetMax() <<
"]: "
186 << p->GetValue() <<
" " << p->GetUnit();
189 std::cout << std::endl;
195 std::cout << prefix <<
"String: " << node->GetName() <<
" " << getAccessMode(node)
202 std::cout << p->GetValue();
205 std::cout << std::endl;
215 int len=
static_cast<int>(p->GetLength());
217 std::cout << prefix <<
"Register: " << node->GetName() <<
"[" << len <<
"] "
218 << getAccessMode(node) <<
": " << std::hex;
223 p->Get(buffer, std::min(len, 32));
225 for (
int i=0; i<len && i<32; i++)
227 std::cout << std::setfill('0') << std::setw(2) << static_cast<int>(buffer[i]);
236 std::cout << std::dec << std::endl;
244 std::cout << prefix <<
"Category: " << node->GetName() <<
" "
245 << getAccessMode(node) << std::endl;
253 GenApi::FeatureList_t feature;
254 root->GetFeatures(feature);
256 for (
size_t i=0; i<feature.size(); i++)
267 std::cout << prefix <<
"Enumeration: " << node->GetName() <<
" " << getAccessMode(node)
279 p->GetSymbolics(list);
281 for (
size_t i=0; i<list.size(); i++)
288 std::cout << list[i];
300 std::cout << p->GetCurrentEntry()->GetSymbolic();
304 std::cout << std::endl;
309 std::cout << prefix <<
"EnumEntry: " << node->GetName() <<
" " << getAccessMode(node)
314 std::cout << prefix <<
"Port: " << node->GetName() <<
" " << getAccessMode(node)
324 bool printNodemap(
const std::shared_ptr<GenApi::CNodeMapRef> &nodemap,
const char root[],
325 int depth,
bool show_enum_list)
332 printNode(std::string(
" "), p, depth, show_enum_list);
GENICAM_INTERFACE IInteger
Interface for integer properties.
@ intfIString
IString interface.
@ intfIBoolean
IBoolean interface.
@ intfIBase
IBase interface.
@ intfIRegister
IRegister interface.
@ _CycleDetectAccesMode
used internally for AccessMode cycle detection
@ intfIInteger
IInteger interface.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IBoolean
Interface for Boolean properties.
@ intfIValue
IValue interface.
@ HexNumber
Hex number in an edit control.
@ intfIEnumEntry
IEnumEntry interface.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IRegister
Interface for registers.
@ intfIFloat
IFloat interface.
bool printNodemap(const std::shared_ptr< GenApi::CNodeMapRef > &nodemap, const char root[], int depth, bool show_enum_list)
Printing of nodemap, starting at given root node.
@ intfIEnumeration
IEnumeration interface.
virtual INode * GetNode(const GENICAM_NAMESPACE::gcstring &Name) const =0
Retrieves the node from the central map by Name.
@ intfIPort
IPort interface.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IEnumeration
Interface for enumeration properties.
bool IsReadable(EAccessMode AccessMode)
Tests if readable.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IFloat
Interface for float properties.
GENICAM_INTERFACE INode
Interface common to all nodes.
@ intfICommand
ICommand interface.
@ intfICategory
ICategory interface.
void printNode(const std::string &prefix, GenApi::INode *node, int depth, bool show_enum_list)
Recursive printing of nodes to standard out.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IString
Interface for string properties.
std::string formatValue(GenApi::IInteger *node, int64_t value)
Takes an integer value and formats it according to the specification in the node.
@ _UndefinedAccesMode
Object is not yet initialized.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT ICategory
Gives access to a category node.
GENICAM_NAMESPACE::gcstring_vector StringList_t
A list of strings.
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11