UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
ParType Class Referenceabstract

#include <param.H>

Inheritance diagram for ParType:
ParType_dbitem ParType_dbname ParType_double ParType_double2 ParType_double_ar1 ParType_float ParType_float2 ParType_float_ar1 ParType_int ParType_int2 ParType_int_ar1 ParType_nmod ParType_string ParType_void

Public Member Functions

virtual size_t size (MemBlock *mb) const =0
 
virtual const char * base_type () const =0
 
virtual Logic eq (MemBlock *mb1, MemBlock *mb2)=0
 
virtual void text_input (MemBlock *mb, FILE *stream)=0
 
virtual void text_output (MemBlock *mb, FILE *stream)=0
 
virtual void init (MemBlock *mb)=0
 
virtual void set_value (MemBlock *mb, va_list val)=0
 
virtual void get_value (MemBlock *mb, va_list val)=0
 
void set_text_value (MemBlock *mb, const char *text)
 
void get_text_value (MemBlock *mb, char *&text)
 

Detailed Description

Type of value.

Member Function Documentation

virtual const char* ParType::base_type ( ) const
pure virtual

Self identification for base types only

virtual Logic ParType::eq ( MemBlock mb1,
MemBlock mb2 
)
pure virtual

Return TRUE if two values are equal

void ParType::get_text_value ( MemBlock mb,
char *&  text 
)

Convert value of the type to string, which is dynamically allocated by new[] and should be released by delete[].

virtual void ParType::get_value ( MemBlock mb,
va_list  val 
)
pure virtual

Get the whole value of parameter

virtual void ParType::init ( MemBlock mb)
pure virtual

Initialize par. value

void ParType::set_text_value ( MemBlock mb,
const char *  text 
)

Convert string to value of the type. Syntax errors are detected but are not displayed.

virtual void ParType::set_value ( MemBlock mb,
va_list  val 
)
pure virtual

Set the whole value of parameter

virtual size_t ParType::size ( MemBlock mb) const
pure virtual

Returns virtual size of value (not real memory block under it!!!)

virtual void ParType::text_input ( MemBlock mb,
FILE *  stream 
)
pure virtual

Text input from stream/file

virtual void ParType::text_output ( MemBlock mb,
FILE *  stream 
)
pure virtual

Text output to stream/file


The documentation for this class was generated from the following file: