camcom 1.0.3
 
Loading...
Searching...
No Matches
camcom::genicam Namespace Reference

Classes

struct  BooleanNode
 
struct  CategoryNode
 
struct  CommandNode
 
class  ConnectedEmulatorTest
 
struct  EnumerationNode
 
struct  FloatNode
 
class  GenICamAdapter
 
class  GenICamEmulator
 
class  GenICamEmulatorTest
 
struct  GErrorGuard
 RAII guard for GError* — auto-frees on destruction. More...
 
class  GObjectGuard
 
struct  IntegerNode
 
struct  NodeBase
 Base attributes shared by all GenICam nodes. More...
 
struct  StringNode
 
class  XmlParser
 

Typedefs

using DeviceGuard = GObjectGuard<ArvDevice>
 
using StreamGuard = GObjectGuard<ArvStream>
 
using BufferGuard = GObjectGuard<ArvBuffer>
 
using InetAddrGuard = GObjectGuard<GInetAddress>
 
using GenICamNode
 Variant holding any concrete node type.
 
using NodeMap = std::map<std::string, GenICamNode>
 Container: feature name -> node.
 

Enumerations

enum class  NodeType {
  Integer , Float , Boolean , String ,
  Enumeration , Command , Category
}
 GenICam node types. More...
 
enum class  AccessMode { RO , WO , RW , NA }
 Access mode for a GenICam node. More...
 

Functions

common::AdapterBaseCreateAdapter ()
 
void destroyAdapter (common::AdapterBase *adapter)
 
 TEST_F (GenICamEmulatorTest, Protocol)
 
 TEST_F (GenICamEmulatorTest, ConnectLoadsNodes)
 
 TEST_F (GenICamEmulatorTest, CheckConnectionBeforeConnect)
 
 TEST_F (ConnectedEmulatorTest, CheckConnectionAfterConnect)
 
 TEST_F (ConnectedEmulatorTest, DisconnectAndCheck)
 
 TEST_F (ConnectedEmulatorTest, ReadWidth)
 
 TEST_F (ConnectedEmulatorTest, ReadHeight)
 
 TEST_F (ConnectedEmulatorTest, ReadPixelFormat)
 
 TEST_F (ConnectedEmulatorTest, ReadExposureTime)
 
 TEST_F (ConnectedEmulatorTest, ReadGain)
 
 TEST_F (ConnectedEmulatorTest, ReadDeviceVendorName)
 
 TEST_F (ConnectedEmulatorTest, ReadNonExistent)
 
 TEST_F (ConnectedEmulatorTest, ReadMultiple)
 
 TEST_F (ConnectedEmulatorTest, WriteWidth)
 
 TEST_F (ConnectedEmulatorTest, WriteExposureTime)
 
 TEST_F (ConnectedEmulatorTest, WriteExposureTimeReadBack)
 
 TEST_F (ConnectedEmulatorTest, WriteReadOnlyThrows)
 
 TEST_F (ConnectedEmulatorTest, WriteUpdatesFrameSize)
 
 TEST_F (ConnectedEmulatorTest, WriteMultiple)
 
 TEST_F (GenICamEmulatorTest, ScanReturnsAllReadableParams)
 
 TEST_F (ConnectedEmulatorTest, GetBasicParams)
 
 TEST_F (ConnectedEmulatorTest, GetBasicParamsAfterResize)
 
 TEST_F (ConnectedEmulatorTest, StartStopAcquisition)
 
 TEST_F (ConnectedEmulatorTest, ReceiveFrame)
 
 TEST_F (ConnectedEmulatorTest, ReceiveFrameNoAcquisition)
 
 TEST_F (ConnectedEmulatorTest, SingleFrameMode)
 
 TEST_F (ConnectedEmulatorTest, StartAcquisitionNotConnectedThrows)
 
 TEST_F (GenICamEmulatorTest, CameraNativeReadWrite)
 
std::string nodeTypeToString (NodeType type)
 Convert NodeType to string.
 
std::string accessModeToString (AccessMode mode)
 Convert AccessMode to string.
 
NodeType getNodeType (const GenICamNode &node)
 Get the NodeType of a variant node.
 
std::string getNodeName (const GenICamNode &node)
 Get the name of a variant node.
 
AccessMode getAccessMode (const GenICamNode &node)
 Get the access mode of a variant node.
 
std::string getDisplayName (const GenICamNode &node)
 Get the display name of a variant node.
 
std::string getDescription (const GenICamNode &node)
 Get the description of a variant node.
 
common::Parameter nodeToParameter (const GenICamNode &node)
 Convert a GenICamNode to a CamCom Parameter (name + value + type)
 
bool parameterToNode (const common::Parameter &param, GenICamNode &node)
 
common::DataType pixelFormatToDataType (const std::string &pixel_format)
 Map a GenICam PixelFormat string to CamCom DataType.
 
std::string dataTypeToPixelFormat (common::DataType dtype)
 Map a CamCom DataType to a GenICam PixelFormat string.
 
int bytesPerPixel (const std::string &pixel_format)
 Get bytes per pixel for a GenICam PixelFormat string.
 

Typedef Documentation

◆ BufferGuard

◆ DeviceGuard

◆ GenICamNode

Initial value:
std::variant<
>
Definition node_types.hpp:71
Definition node_types.hpp:90
Definition node_types.hpp:86
Definition node_types.hpp:80
Definition node_types.hpp:63
Definition node_types.hpp:55
Definition node_types.hpp:75

Variant holding any concrete node type.

◆ InetAddrGuard

◆ NodeMap

using camcom::genicam::NodeMap = std::map<std::string, GenICamNode>

Container: feature name -> node.

◆ StreamGuard

Enumeration Type Documentation

◆ AccessMode

enum class camcom::genicam::AccessMode
strong

Access mode for a GenICam node.

Enumerator
RO 
WO 
RW 
NA 

◆ NodeType

enum class camcom::genicam::NodeType
strong

GenICam node types.

Enumerator
Integer 
Float 
Boolean 
String 
Enumeration 
Command 
Category 

Function Documentation

◆ accessModeToString()

std::string camcom::genicam::accessModeToString ( AccessMode mode)

Convert AccessMode to string.

◆ bytesPerPixel()

int camcom::genicam::bytesPerPixel ( const std::string & pixel_format)

Get bytes per pixel for a GenICam PixelFormat string.

◆ CreateAdapter()

common::AdapterBase * camcom::genicam::CreateAdapter ( )

◆ dataTypeToPixelFormat()

std::string camcom::genicam::dataTypeToPixelFormat ( common::DataType dtype)

Map a CamCom DataType to a GenICam PixelFormat string.

◆ destroyAdapter()

void camcom::genicam::destroyAdapter ( common::AdapterBase * adapter)

◆ getAccessMode()

AccessMode camcom::genicam::getAccessMode ( const GenICamNode & node)

Get the access mode of a variant node.

◆ getDescription()

std::string camcom::genicam::getDescription ( const GenICamNode & node)

Get the description of a variant node.

◆ getDisplayName()

std::string camcom::genicam::getDisplayName ( const GenICamNode & node)

Get the display name of a variant node.

◆ getNodeName()

std::string camcom::genicam::getNodeName ( const GenICamNode & node)

Get the name of a variant node.

◆ getNodeType()

NodeType camcom::genicam::getNodeType ( const GenICamNode & node)

Get the NodeType of a variant node.

◆ nodeToParameter()

common::Parameter camcom::genicam::nodeToParameter ( const GenICamNode & node)

Convert a GenICamNode to a CamCom Parameter (name + value + type)

◆ nodeTypeToString()

std::string camcom::genicam::nodeTypeToString ( NodeType type)

Convert NodeType to string.

◆ parameterToNode()

bool camcom::genicam::parameterToNode ( const common::Parameter & param,
GenICamNode & node )

Apply a CamCom Parameter's value back into a GenICamNode Returns true if the value was applied, false if the node type doesn't match

◆ pixelFormatToDataType()

common::DataType camcom::genicam::pixelFormatToDataType ( const std::string & pixel_format)

Map a GenICam PixelFormat string to CamCom DataType.

◆ TEST_F() [1/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
CheckConnectionAfterConnect  )

◆ TEST_F() [2/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
DisconnectAndCheck  )

◆ TEST_F() [3/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
GetBasicParams  )

◆ TEST_F() [4/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
GetBasicParamsAfterResize  )

◆ TEST_F() [5/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
ReadDeviceVendorName  )

◆ TEST_F() [6/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
ReadExposureTime  )

◆ TEST_F() [7/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
ReadGain  )

◆ TEST_F() [8/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
ReadHeight  )

◆ TEST_F() [9/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
ReadMultiple  )

◆ TEST_F() [10/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
ReadNonExistent  )

◆ TEST_F() [11/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
ReadPixelFormat  )

◆ TEST_F() [12/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
ReadWidth  )

◆ TEST_F() [13/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
ReceiveFrame  )

◆ TEST_F() [14/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
ReceiveFrameNoAcquisition  )

◆ TEST_F() [15/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
SingleFrameMode  )

◆ TEST_F() [16/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
StartAcquisitionNotConnectedThrows  )

◆ TEST_F() [17/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
StartStopAcquisition  )

◆ TEST_F() [18/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
WriteExposureTime  )

◆ TEST_F() [19/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
WriteExposureTimeReadBack  )

◆ TEST_F() [20/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
WriteMultiple  )

◆ TEST_F() [21/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
WriteReadOnlyThrows  )

◆ TEST_F() [22/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
WriteUpdatesFrameSize  )

◆ TEST_F() [23/28]

camcom::genicam::TEST_F ( ConnectedEmulatorTest ,
WriteWidth  )

◆ TEST_F() [24/28]

camcom::genicam::TEST_F ( GenICamEmulatorTest ,
CameraNativeReadWrite  )

◆ TEST_F() [25/28]

camcom::genicam::TEST_F ( GenICamEmulatorTest ,
CheckConnectionBeforeConnect  )

◆ TEST_F() [26/28]

camcom::genicam::TEST_F ( GenICamEmulatorTest ,
ConnectLoadsNodes  )

◆ TEST_F() [27/28]

camcom::genicam::TEST_F ( GenICamEmulatorTest ,
Protocol  )

◆ TEST_F() [28/28]

camcom::genicam::TEST_F ( GenICamEmulatorTest ,
ScanReturnsAllReadableParams  )