40 {
"$Id: Int16.cc 21699 2009-11-05 00:06:01Z jimg $" 95 return new Int16(*
this);
104 dynamic_cast<BaseType &
>(*this) = rhs;
155 "The incoming pointer does not contain any data.");
168 throw InternalErr(__FILE__, __LINE__,
"NULL pointer.");
199 fprintf(out,
" = %d;\n",
_buf) ;
202 fprintf(out,
"%d",
_buf) ;
211 out <<
" = " <<
_buf <<
";\n" ;
228 throw InternalErr(__FILE__, __LINE__,
"This value not read!");
238 throw InternalErr(__FILE__, __LINE__,
"This value not read!");
243 return rops<dods_int16, dods_byte, SUCmp<dods_int16, dods_byte> >
244 (
_buf,
dynamic_cast<Byte *
>(b)->_buf, op);
246 return rops<dods_int16, dods_int16, Cmp<dods_int16, dods_int16> >
247 (
_buf,
dynamic_cast<Int16 *
>(b)->_buf, op);
249 return rops<dods_int16, dods_uint16, SUCmp<dods_int16, dods_uint16> >
252 return rops<dods_int16, dods_int32, Cmp<dods_int16, dods_int32> >
253 (
_buf,
dynamic_cast<Int32 *
>(b)->_buf, op);
255 return rops<dods_int16, dods_uint32, SUCmp<dods_int16, dods_uint32> >
258 return rops<dods_int16, dods_float32, Cmp<dods_int16, dods_float32> >
261 return rops<dods_int16, dods_float64, Cmp<dods_int16, dods_float64> >
280 << (
void *)
this <<
")" << endl ;
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 bool deserialize(UnMarshaller &um, DDS *dds, bool reuse=false)
Receive data from the net.
Int16 & operator=(const Int16 &rhs)
Holds an unsigned 16-bit integer.
virtual bool ops(BaseType *b, int op)
Evaluate relational operators.
virtual BaseType * ptr_duplicate()
Holds a 32-bit floating point value.
virtual unsigned int width()
Returns the size of the class instance data.
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 ...
Holds a 16-bit signed integer value.
Type type() const
Returns the type of the class instance.
virtual bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true)
Move data to the net.
virtual unsigned int buf2val(void **val)
Reads the class data.
virtual bool set_value(dods_int16 val)
virtual void set_read_p(bool state)
Sets the value of the read_p property.
virtual void put_int16(dods_int16 val)=0
virtual void get_int16(dods_int16 &val)=0
virtual void print_val(FILE *out, string space="", bool print_decl_p=true)
Prints the value of the variable.
Evaluate a constraint expression.
static ostream & LMarg(ostream &strm)
virtual void dump(ostream &strm) const
dumps information about this object
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.
Holds a 32-bit unsigned integer.
virtual unsigned int val2buf(void *val, bool reuse=false)
Loads class data.
Holds a 32-bit signed integer.
virtual dods_int16 value() const
string dataset() const
Returns the name of the dataset used to create this instance.