28 #ifndef Hypertable_Lib_SystemvVriable_h
29 #define Hypertable_Lib_SystemvVriable_h
41 namespace SystemVariable {
79 size_t *remainp)
override;
126 void encode_specs(
const std::vector<Spec> &specs, uint8_t **bufp);
135 const uint8_t **bufp,
size_t *remainp);
143 #endif // Hypertable_Lib_SystemvVriable_h
int32_t code
Variable code.
bool default_value(int var_code)
Returns default value for given variable.
std::string specs_to_string(const std::vector< Spec > &specs)
Returns a textual representation of variable specifications.
int string_to_code(const std::string &var_string)
Converts variable string to variable code.
void decode_specs(std::vector< Spec > &specs, const uint8_t **bufp, size_t *remainp)
Decodes a vector of variable specs.
void encode_specs(const std::vector< Spec > &specs, uint8_t **bufp)
Encodes a vector of variable specs.
size_t encoded_length_internal() const override
Returns internal serialized length.
Holds a variable code and boolean value.
Declarations for Serializable.
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
Mixin class that provides a standard serialization interface.
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
uint8_t encoding_version() const override
Returns encoding version.
Code
Enumeration for variable codes.
A String class based on std::string.
bool value
Variable value.
size_t encoded_length_specs(const std::vector< Spec > &specs)
Returns encoded length of variable specs vector.
const char * code_to_string(int var_code)
Converts variable code to variable string.