49 class r_Primitive_Type :
public r_Base_Type
55 r_Primitive_Type(
const r_Primitive_Type& oldObj );
57 const r_Primitive_Type& operator=(
const r_Primitive_Type& oldObj );
59 virtual ~r_Primitive_Type();
62 virtual r_Type* clone()
const;
68 virtual void convertToLittleEndian(
char* cells, r_Area noCells)
const;
71 virtual void convertToBigEndian(
char* cells, r_Area noCells)
const;
74 virtual void print_status( std::ostream& s = std::cout )
const;
77 virtual bool isPrimitiveType()
const;
80 virtual void print_value(
const char* storage, std::ostream& s = std::cout )
const;
87 r_Double get_value(
const char* cell )
const throw( r_Error );
89 void set_value(
char* cell, r_Double ) throw( r_Error );
91 void get_limits( r_Double&, r_Double& ) throw( r_Error );
95 r_Boolean get_boolean( const
char* cell ) const throw( r_Error );
97 r_Char get_char( const
char* cell ) const throw( r_Error );
99 r_Octet get_octet( const
char* cell ) const throw( r_Error );
101 r_Short get_short( const
char* cell ) const throw( r_Error );
103 r_UShort get_ushort( const
char* cell ) const throw( r_Error );
105 r_Long get_long( const
char* cell ) const throw( r_Error );
107 r_ULong get_ulong( const
char* cell ) const throw( r_Error );
109 r_Float get_float( const
char* cell ) const throw( r_Error );
111 r_Double get_double( const
char* cell ) const throw( r_Error );
114 void set_boolean(
char* cell, r_Boolean ) throw( r_Error );
116 void set_char(
char* cell, r_Char ) throw( r_Error );
118 void set_octet(
char* cell, r_Octet ) throw( r_Error );
120 void set_short(
char* cell, r_Short ) throw( r_Error );
122 void set_ushort(
char* cell, r_UShort ) throw( r_Error );
124 void set_long(
char* cell, r_Long ) throw( r_Error );
126 void set_ulong(
char* cell, r_ULong ) throw( r_Error );
128 void set_float(
char* cell, r_Float ) throw( r_Error );
130 void set_double(
char* cell, r_Double ) throw( r_Error );
144 extern std::ostream &operator<<( std::ostream &str, const r_Primitive_Type &type );
r_Type_Id
Definition: type.hh:61