26#ifndef __GyotoValue_H_
27#define __GyotoValue_H_
36 namespace Metric {
class Generic;}
37 namespace Astrobj {
class Generic;}
38 namespace Spectrum {
class Generic;}
39 namespace Spectrometer {
class Generic;}
81 operator double()
const;
90 operator bool()
const;
99 operator long()
const;
108 operator unsigned long()
const;
114#if !defined(GYOTO_SIZE__T_IS_UNSIGNED_LONG)
128 operator std::string()
const;
137 operator std::vector<double>()
const;
146 operator std::vector<unsigned long>()
const;
Compile-time configuration.
#define size_t
If not defined in <sys/types.h>.
Definition: GyotoConfig.h:390
Reference-counting pointers.
Container for the value of a Property.
Definition: GyotoValue.h:60
int type
Type of this instance.
Definition: GyotoValue.h:72
Value(long)
Construct/cast from long.
Gyoto::SmartPointer< Gyoto::Spectrometer::Generic > Spectrometer
A Spectrometer object.
Definition: GyotoValue.h:177
Value(Gyoto::SmartPointer< Gyoto::Metric::Generic >)
Cast from Metric object.
Value(std::string)
Construct/cast from string.
Gyoto::SmartPointer< Gyoto::Spectrum::Generic > Spectrum
A Spectrum object.
Definition: GyotoValue.h:168
Value(unsigned long)
Construct/cast from unsigned long.
size_t SizeT
A size_t (only if distinct from unsigned long)
Definition: GyotoValue.h:112
Value(double)
Construct/cast from double.
Value(Gyoto::SmartPointer< Gyoto::Screen >)
Cast from Screen.
Gyoto::SmartPointer< Gyoto::Metric::Generic > Metric
A Metric object.
Definition: GyotoValue.h:150
double Double
A double value.
Definition: GyotoValue.h:76
Gyoto::SmartPointer< Gyoto::Screen > Screen
A Screen object.
Definition: GyotoValue.h:186
std::string String
A string value.
Definition: GyotoValue.h:123
Value & operator=(Value const &)
Assignement operator.
Value(bool)
Construct/cast from boolean.
Value(std::vector< double >)
Construct/cast from vector of doubles.
Value(Gyoto::SmartPointer< Gyoto::Spectrum::Generic >)
Cast from Spectrum.
Value(Gyoto::SmartPointer< Gyoto::Spectrometer::Generic >)
Cast from Spectrometer.
Gyoto::SmartPointer< Gyoto::Astrobj::Generic > Astrobj
An Astrobj Object.
Definition: GyotoValue.h:159
Value(std::vector< unsigned long >)
Construct/cast from vector of unsigned long values.
long Long
A long value.
Definition: GyotoValue.h:94
Value(Gyoto::SmartPointer< Gyoto::Astrobj::Generic >)
Cast from Astrobj.
std::vector< unsigned long > VULong
A vector of unsigned long values.
Definition: GyotoValue.h:141
std::vector< double > VDouble
A vector of double values.
Definition: GyotoValue.h:132
unsigned long ULong
An unsigned long (a.k.a. size_t)
Definition: GyotoValue.h:103
bool Bool
A boolean value.
Definition: GyotoValue.h:85
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43