gclib 2.5.0
Galil Communications Library
Loading...
Searching...
No Matches
gclib.hpp File Reference
#include <gclib.h>
#include <string>
#include <vector>
#include <functional>
#include <system_error>
#include <bitset>

Go to the source code of this file.

Classes

class  error
 Thrown when the underlying C library returns a nonzero gclib_result. More...
struct  Interrupt
struct  DataRecord
struct  DataRecord::Amp
 Holds amplifier-specific data record fields. Provided by DataRecord.amp(). More...
struct  DataRecord::Axis
 Holds axis-specific data record fields. Provided by DataRecord.axis(). More...
struct  DataRecord::CoordinatedMove
 Holds coordinated move specific data record fields. Provided by DataRecord.coordinated_move(). More...
class  Controller
 Manages a connection to a controller. More...

Namespaces

namespace  gclib
namespace  gclib::internal

Enumerations

enum  ConnectionType {
  Ethernet = GCLIB_ETHERNET ,
  Serial = GCLIB_SERIAL ,
  Pci = GCLIB_PCI
}
 Returned by Controller::connection_type(). More...

Functions

std::string version ()
 Installed gclib version.
std::string addresses ()
 Show address, model, and serial of detected controllers, where available. Detected controllers are newline-separated. Each line is comma-separated.
std::string ip_requests ()
 Show MAC address, model, and serial of all controllers requesting IP addresses. Detected controllers are newline-separated. Use assign_ip() to assign an IP address to controllers returned by this method.
void assign_ip (std::string mac, std::string ip)
void force_gcaps (bool on)
 Force future library calls to use either gcaps or direct connections.
std::string gcaps_version ()
 Installed gcaps version, as reported by current gcaps server.
std::string list_servers ()
 List available gcaps servers separated by newline.
std::string server ()
 Current gcaps server, or an empty string if connected to the local gcaps server.
void set_server (std::string name={})
std::string published ()
 Return name of local gcaps server, or an empty string if unpublished.
void set_published (std::string name={})
 Publish local gcaps server as name, or unpublish if name is empty.