31 #include <xlnt/xlnt_config.hpp> 89 static std::string get_type_string(
type type);
99 variant(
const std::string &value);
124 variant(
const std::initializer_list<std::int32_t> &value);
129 variant(
const std::vector<std::int32_t> &value);
134 variant(
const std::initializer_list<const char *> &value);
139 variant(
const std::vector<const char *> &value);
144 variant(
const std::initializer_list<std::string> &value);
149 variant(
const std::vector<std::string> &value);
154 variant(
const std::initializer_list<bool> &value);
159 variant(
const std::vector<bool> &value);
164 variant(
const std::initializer_list<datetime> &value);
169 variant(
const std::vector<datetime> &value);
174 variant(
const std::initializer_list<variant> &value);
179 variant(
const std::vector<variant> &value);
184 bool is(type t)
const;
192 template <
typename T>
198 type value_type()
const;
206 void construct_vector_internal(
const T &vec);
209 std::vector<T> get_vector_internal()
const;
212 std::vector<variant> vector_value_;
213 std::int32_t i4_value_;
214 std::string lpstr_value_;
277 XLNT_API std::vector<std::int32_t>
variant::get()
const;
type
The possible types a variant can hold.
Definition: variant.hpp:48
Represents an object that can have variable type.
Definition: variant.hpp:40
T get() const
Returns the value of this variant as type T. Assumes that the variant is of type T (please call is() ...
Enumerates the possible types a cell can be determined by it's current value.
Definition: cell.hpp:36
bool operator!=(std::nullptr_t, const cell &cell)
Returns true if this cell is initialized.
bool operator==(std::nullptr_t, const cell &cell)
Returns true if this cell is uninitialized.
A datetime is a combination of a date and a time. IMPORTANT: The datetime could be in an empty/invali...
Definition: datetime.hpp:41
A date is a specific day specified in terms of a year, month, and day. It can also be initialized as ...
Definition: date.hpp:37