40 {
"$Id: Byte.cc 21699 2009-11-05 00:06:01Z jimg $"
102 return new Byte(*
this);
110 dynamic_cast <
BaseType & >(*this) = rhs;
174 throw InternalErr(
"the incoming pointer does not contain any data.");
220 fprintf(out,
" = %d;\n", (
int)
_buf);
223 fprintf(out,
"%d", (
int)
_buf);
231 out <<
" = " << (int)
_buf <<
";\n" ;
261 return rops < dods_byte, dods_byte, Cmp < dods_byte, dods_byte > >
262 (
_buf, dynamic_cast <
Byte * >(b)->_buf, op);
265 dods_int16 > > (
_buf, dynamic_cast <
Int16 * >(b)->_buf, op);
268 dods_uint16 > > (
_buf, dynamic_cast <
UInt16 * >(b)->_buf, op);
271 dods_int32 > > (
_buf, dynamic_cast <
Int32 * >(b)->_buf, op);
274 dods_uint32 > > (
_buf, dynamic_cast <
UInt32 * >(b)->_buf, op);
277 dods_float32 > > (
_buf, dynamic_cast <
Float32 * >(b)->_buf,
281 dods_float64 > > (
_buf, dynamic_cast <
Float64 * >(b)->_buf,
299 << (
void *)
this <<
")" << endl;
virtual bool read()
Read data into a local buffer.
virtual void get_byte(dods_byte &val)=0
virtual bool read_p()
Has this variable been read?
virtual dods_byte value() const
abstract base class used to unmarshall/deserialize dap data objects
virtual unsigned int buf2val(void **val)
Reads the class data.
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.
bool deserialize(UnMarshaller &um, DDS *, bool)
Deserialize the char on stdin and put the result in _BUF.
Byte(const string &n)
The Byte constructor.
bool serialize(ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval)
Holds an unsigned 16-bit integer.
Type type() const
Returns the type of the class instance.
Holds a 32-bit floating point value.
A class for software fault reporting.
string dataset() const
Returns the name of the dataset used to create this instance.
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 unsigned int val2buf(void *val, bool reuse=false)
Holds a 16-bit signed integer value.
Byte & operator=(const Byte &rhs)
virtual void dump(ostream &strm) const
dumps information about this object
virtual void set_read_p(bool state)
Sets the value of the read_p property.
virtual bool set_value(const dods_byte value)
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.
Evaluate a constraint expression.
virtual void put_byte(dods_byte val)=0
static ostream & LMarg(ostream &strm)
The basic data type for the DODS DAP types.
virtual unsigned int width()
Returns the size of the class instance data.
abstract base class used to marshal/serialize dap data objects
Holds a 64-bit (double precision) floating point value.
bool rops(T1 a, T2 b, int op)
virtual bool ops(BaseType *b, int op)
Evaluate relational operators.
Holds a 32-bit unsigned integer.
Holds a 32-bit signed integer.
virtual BaseType * ptr_duplicate()