21 # define FLOMHANDLE_HH
31 #include "flom_handle.h"
44 virtual const char* what()
const throw()
60 ReturnCode = ret_cod; }
87 int ret_cod = flom_handle_init(&handle);
90 syslog(LOG_ERR,
"FlomHandle/flom_handle_init: "
96 int ret_cod = flom_handle_clean(&handle);
100 syslog(LOG_ERR,
"~FlomHandle/flom_handle_clean: "
111 int lock() {
return flom_handle_lock(&handle); }
118 int unlock() {
return flom_handle_unlock(&handle); }
143 return flom_handle_get_locked_element(&handle); }
158 return NULL != flom_handle_get_locked_element(&handle) ?
159 flom_handle_get_locked_element(&handle) :
""; }
170 return flom_handle_get_discovery_attempts(&handle); }
182 return flom_handle_set_discovery_attempts(&handle, value); }
194 return flom_handle_get_discovery_timeout(&handle); }
207 return flom_handle_set_discovery_timeout(&handle, value); }
217 return flom_handle_get_discovery_ttl(&handle); }
229 return flom_handle_set_discovery_ttl(&handle, value); }
241 return flom_handle_get_lock_mode(&handle); }
254 return flom_handle_set_lock_mode(&handle, value); }
266 return flom_handle_get_multicast_address(&handle); }
277 return NULL != flom_handle_get_multicast_address(&handle) ?
278 flom_handle_get_multicast_address(&handle) :
""; }
291 return flom_handle_set_multicast_address(&handle, value); }
303 return flom_handle_set_multicast_address(&handle, value.c_str()); }
312 return flom_handle_get_multicast_port(&handle); }
323 return flom_handle_set_multicast_port(&handle, value); }
333 return flom_handle_get_network_interface(&handle); }
342 return NULL != flom_handle_get_network_interface(&handle) ?
343 flom_handle_get_network_interface(&handle) :
""; }
354 return flom_handle_set_network_interface(&handle, value); }
364 return flom_handle_set_network_interface(&handle, value.c_str()); }
375 return flom_handle_get_resource_create(&handle); }
387 return flom_handle_set_resource_create(&handle, value); }
399 return flom_handle_get_resource_idle_lifespan(&handle); }
412 return flom_handle_set_resource_idle_lifespan(&handle, value); }
421 return flom_handle_get_resource_name(&handle); }
429 return NULL != flom_handle_get_resource_name(&handle) ?
430 flom_handle_get_resource_name(&handle) :
""; }
444 return flom_handle_set_resource_name(&handle, value); }
458 return flom_handle_set_resource_name(&handle, value.c_str()); }
469 return flom_handle_get_resource_quantity(&handle); }
481 return flom_handle_set_resource_quantity(&handle, value); }
495 return flom_handle_get_resource_timeout(&handle); }
510 return flom_handle_set_resource_timeout(&handle, value); }
519 return flom_handle_get_socket_name(&handle); }
527 return NULL != flom_handle_get_socket_name(&handle) ?
528 flom_handle_get_socket_name(&handle) :
""; }
538 return flom_handle_set_socket_name(&handle, value); }
547 return flom_handle_set_socket_name(&handle, value.c_str()); }
556 return flom_handle_get_trace_filename(&handle); }
564 return NULL != flom_handle_get_trace_filename(&handle) ?
565 flom_handle_get_trace_filename(&handle) :
""; }
576 return flom_handle_set_trace_filename(&handle, value); }
586 return flom_handle_set_trace_filename(&handle, value.c_str()); }
598 return flom_handle_get_unicast_address(&handle); }
609 return NULL != flom_handle_get_unicast_address(&handle) ?
610 flom_handle_get_unicast_address(&handle) :
""; }
623 return flom_handle_set_unicast_address(&handle, value); }
635 return flom_handle_set_unicast_address(&handle, value.c_str()); }
644 return flom_handle_get_unicast_port(&handle); }
654 return flom_handle_set_unicast_port(&handle, value); }
663 return flom_handle_get_tls_certificate(&handle); }
671 return NULL != flom_handle_get_tls_certificate(&handle) ?
672 flom_handle_get_tls_certificate(&handle) :
""; }
682 return flom_handle_set_tls_certificate(&handle, value); }
691 return flom_handle_set_tls_certificate(&handle, value.c_str()); }
700 return flom_handle_get_tls_private_key(&handle); }
708 return NULL != flom_handle_get_tls_private_key(&handle) ?
709 flom_handle_get_tls_private_key(&handle) :
""; }
719 return flom_handle_set_tls_private_key(&handle, value); }
728 return flom_handle_set_tls_private_key(&handle, value.c_str()); }
737 return flom_handle_get_tls_ca_certificate(&handle); }
745 return NULL != flom_handle_get_tls_ca_certificate(&handle) ?
746 flom_handle_get_tls_ca_certificate(&handle) :
""; }
756 return flom_handle_set_tls_ca_certificate(&handle, value); }
765 return flom_handle_set_tls_ca_certificate(
766 &handle, value.c_str()); }
775 return flom_handle_get_tls_check_peer_id(&handle); }
785 return flom_handle_set_tls_check_peer_id(&handle, value); }
string getNetworkInterface()
int getDiscoveryAttempts()
const char * getTlsCaCertificateAsCStr()
string getLockedElement()
int setDiscoveryTimeout(int value)
int setResourceName(const string &value)
int getResourceIdleLifespan()
string getTraceFilename()
int setTlsCaCertificate(const char *value)
int setResourceIdleLifespan(int value)
int setNetworkInterface(const string &value)
int setTlsPrivateKey(const string &value)
const char * getLockedElementAsCStr()
int setDiscoveryAttempts(int value)
int setSocketName(const char *value)
int setMulticastAddress(const string &value)
int setTlsPrivateKey(const char *value)
int setTlsCertificate(const string &value)
int setNetworkInterface(const char *value)
string getTlsCertificate()
const char * getSocketNameAsCStr()
int setTraceFilename(const string &value)
const char * getTraceFilenameAsCStr()
int setTlsCheckPeerId(int value)
FlomException(int ret_cod)
int setTlsCertificate(const char *value)
string getTlsPrivateKey()
string getUnicastAddress()
int setUnicastPort(int value)
string getReturnCodeText()
int setResourceCreate(int value)
int setTraceFilename(const char *value)
const char * getNetworkInterfaceAsCStr()
const char * flom_strerror(int ret_cod)
int setResourceQuantity(int value)
string getTlsCaCertificate()
int setTlsCaCertificate(const string &value)
const char * getUnicastAddressAsCStr()
flom_lock_mode_t getLockMode()
int setSocketName(const string &value)
int setResourceName(const char *value)
const char * getTlsPrivateKeyAsCStr()
int getResourceQuantity()
int setUnicastAddress(const char *value)
const char * getResourceNameAsCStr()
string getMulticastAddress()
const char * getMulticastAddressAsCStr()
int getDiscoveryTimeout()
int setMulticastAddress(const char *value)
int setLockMode(flom_lock_mode_t value)
int setDiscoveryTtl(int value)
const char * getTlsCertificateAsCStr()
int setMulticastPort(int value)
int setResourceTimeout(int value)
int setUnicastAddress(const string &value)