YAMI4 C++ Library 2.0.0
Messaging Solution for Distributed Systems
Loading...
Searching...
No Matches
parameter_entry.h
1// Copyright Maciej Sobczak 2008-2022.
2// This file is part of YAMI4.
3// See the package-level LICENSE.txt file.
4
5#ifndef YAMICPP_PARAMETER_ENTRY_H_INCLUDED
6#define YAMICPP_PARAMETER_ENTRY_H_INCLUDED
7
8#include "parameter_type.h"
9#include <yami4-core/dll.h>
10#include <yami4-core/parameter_entry.h>
11#include <yami4-core/parameters.h>
12#include <string>
13
14namespace yami
15{
16
26{
27public:
34
40 std::string name() const;
41
46 bool get_boolean() const;
47
52 int get_integer() const;
53
58 long long get_long_long() const;
59
64 unsigned int get_word() const;
65
70 unsigned long long get_long_long_word() const;
71
76 double long get_double_float() const;
77
82 std::string get_string() const;
83
90 const char * get_string(std::size_t & length) const;
91
98 const void * get_binary(std::size_t & length) const;
99
104 core::parameters * get_nested_parameters() const;
105
114 bool * get_boolean_array(std::size_t & array_length) const;
115
124 int * get_integer_array(std::size_t & array_length) const;
125
134 long long * get_long_long_array(std::size_t & array_length) const;
135
144 unsigned int * get_word_array(std::size_t & array_length) const;
145
154 unsigned long long * get_long_long_word_array(std::size_t & array_length) const;
155
164 double * get_double_float_array(std::size_t & array_length) const;
165
172 std::size_t get_string_array_length() const;
173
180 std::string get_string_in_array(std::size_t index) const;
181
189 const char * get_string_in_array(std::size_t index,
190 std::size_t & value_length) const;
191
198 std::size_t get_binary_array_length() const;
199
207 const void * get_binary_in_array(std::size_t index,
208 std::size_t & value_length) const;
209
210 core::parameter_entry entry_;
211};
212
213} // namespace yami
214
215#endif // YAMICPP_PARAMETER_ENTRY_H_INCLUDED
Read-only view on the parameters entry.
Definition: parameter_entry.h:26
long long * get_long_long_array(std::size_t &array_length) const
Extracts the array of long long values from the current entry.
long long get_long_long() const
Extracts the long long value from the current entry.
int * get_integer_array(std::size_t &array_length) const
Extracts the array of int values from the current entry.
unsigned long long get_long_long_word() const
Extracts the unsigned long long value from the current entry.
std::string get_string_in_array(std::size_t index) const
Extracts string value from string array.
core::parameters * get_nested_parameters() const
Extracts the nested parameters value from the current entry.
unsigned long long * get_long_long_word_array(std::size_t &array_length) const
Extracts the array of unsigned long long values from the current entry.
std::size_t get_string_array_length() const
Extracts the length of string array.
std::string name() const
Extracts the name of current entry.
const char * get_string_in_array(std::size_t index, std::size_t &value_length) const
Extracts string value from string array.
double long get_double_float() const
Extracts the double float value from the current entry.
unsigned int get_word() const
Extracts the unsigned int value from the current entry.
bool * get_boolean_array(std::size_t &array_length) const
Extracts the array of bool values from the current entry.
unsigned int * get_word_array(std::size_t &array_length) const
Extracts the array of unsigned int values from the current entry.
std::size_t get_binary_array_length() const
Extracts the length of binary array.
std::string get_string() const
Extracts the string value from the current entry.
const char * get_string(std::size_t &length) const
Extracts the string value from the current entry.
const void * get_binary_in_array(std::size_t index, std::size_t &value_length) const
Extracts binary value from binary array.
const void * get_binary(std::size_t &length) const
Extracts the binary value from the current entry.
double * get_double_float_array(std::size_t &array_length) const
Extracts the array of double values from the current entry.
int get_integer() const
Extracts the int value from the current entry.
bool get_boolean() const
Extracts the bool value from the current entry.
parameter_type type() const
Returns the type of underlying (current) entry.
Namespace devoted to everything related to YAMI4.
Definition: agent.h:21
parameter_type
Type of parameter entry.
Definition: parameter_type.h:13