A literal with a language tag. More...
#include <rdf_model.hpp>
Public Member Functions | |
LanguageLiteral (const std::string &label, const std::string &language) | |
LanguageLiteral (const char *label, const char *language) | |
const std::string & | getLanguage () const |
Gets the language tag for this literal, normalized to lower case. | |
const ValueTypes | getType () const |
Return type information (to avoid dynamic casts if possible) | |
Public Member Functions inherited from mico::rdf::model::Literal | |
Literal (const std::string &label) | |
Literal (const char *label) | |
Literal (int8_t i) | |
Literal (int16_t i) | |
Literal (int32_t i) | |
Literal (int64_t i) | |
Literal (double d) | |
Literal (float d) | |
Literal (bool b) | |
bool | booleanValue () const |
Returns the boolean value of this literal. | |
int8_t | byteValue () const |
Returns the byte value of this literal. | |
cpp_dec_float_50 | decimalValue () const |
Returns the decimal value of this literal. | |
double | doubleValue () const |
Returns the double value of this literal. | |
float | floatValue () const |
Returns the float value of this literal. | |
cpp_int | integerValue () const |
Returns the integer value of this literal. | |
int32_t | intValue () const |
Returns the 32 bit int value of this literal. | |
int64_t | longValue () const |
Returns the 64 bit long value of this literal. | |
int16_t | shortValue () const |
Returns the 16 bit short value of this literal. | |
const std::string & | getLabel () const |
Gets the label of this literal. | |
const std::string & | stringValue () const |
Returns the String-value of a Value object. More... | |
bool | operator== (const std::string &s) const |
bool | operator!= (const std::string &s) const |
operator bool () const | |
operator int () const | |
operator long int () const | |
operator long long int () const | |
operator float () const | |
operator double () const | |
operator const char * () const | |
Additional Inherited Members | |
Protected Attributes inherited from mico::rdf::model::Literal | |
std::string | label |
A literal with a language tag.