42 {
"$Id: Float32.cc 21699 2009-11-05 00:06:01Z jimg $" 111 dynamic_cast<BaseType &
>(*this) = rhs;
163 "The incoming pointer does not contain any data.");
176 throw InternalErr(__FILE__, __LINE__,
"NULL pointer.");
215 fprintf(out,
" = %.6g;\n",
_buf) ;
218 fprintf(out,
"%.6g",
_buf) ;
230 out <<
" = " << std::setprecision( 6 ) <<
_buf <<
";\n" ;
233 out << std::setprecision( 6 ) <<
_buf ;
245 throw InternalErr(__FILE__, __LINE__,
"This value not read!");
250 throw InternalErr(__FILE__, __LINE__,
"This value not read!");
255 return rops<dods_float32, dods_byte, Cmp<dods_float32, dods_byte> >
256 (
_buf,
dynamic_cast<Byte *
>(b)->_buf, op);
258 return rops<dods_float32, dods_int16, Cmp<dods_float32, dods_int16> >
259 (
_buf,
dynamic_cast<Int16 *
>(b)->_buf, op);
261 return rops<dods_float32, dods_uint16, Cmp<dods_float32, dods_uint16> >
264 return rops<dods_float32, dods_int32, Cmp<dods_float32, dods_int32> >
265 (
_buf,
dynamic_cast<Int32 *
>(b)->_buf, op);
267 return rops<dods_float32, dods_uint32, Cmp<dods_float32, dods_uint32> >
270 return rops<dods_float32, dods_float32, Cmp<dods_float32, dods_float32> >
273 return rops<dods_float32, dods_float64, Cmp<dods_float32, dods_float64> >
virtual bool read()
Read data into a local buffer.
virtual bool read_p()
Has this variable been read?
abstract base class used to unmarshall/deserialize dap data objects
virtual void print_decl(FILE *out, string space=" ", bool print_semi=true, bool constraint_info=false, bool constrained=false)
Print an ASCII representation of the variable structure.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void print_val(FILE *out, string space="", bool print_decl_p=true)
Prints the value of the variable.
virtual bool deserialize(UnMarshaller &um, DDS *dds, bool reuse=false)
Receive data from the net.
virtual void put_float32(dods_float32 val)=0
virtual void get_float32(dods_float32 &val)=0
Holds an unsigned 16-bit integer.
Float32 & operator=(const Float32 &rhs)
virtual bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true)
Move data to the net.
virtual unsigned int val2buf(void *val, bool reuse=false)
Loads class data.
Holds a 32-bit floating point value.
A class for software fault reporting.
bool eval_selection(DDS &dds, const string &dataset)
Evaluate a boolean-valued constraint expression. This is main method for the evaluator ans is called ...
virtual void dump(ostream &strm) const
dumps information about this object
Holds a 16-bit signed integer value.
Type type() const
Returns the type of the class instance.
virtual void set_read_p(bool state)
Sets the value of the read_p property.
virtual bool set_value(dods_float32 f)
virtual unsigned int width()
Returns the size of the class instance data.
Evaluate a constraint expression.
virtual BaseType * ptr_duplicate()
static ostream & LMarg(ostream &strm)
virtual unsigned int buf2val(void **val)
Reads the class data.
The basic data type for the DODS DAP types.
abstract base class used to marshal/serialize dap data objects
Holds a 64-bit (double precision) floating point value.
virtual dods_float32 value() const
Holds a 32-bit unsigned integer.
virtual bool ops(BaseType *b, int op)
Evaluate relational operators.
Holds a 32-bit signed integer.
string dataset() const
Returns the name of the dataset used to create this instance.