Back to index

salome-smesh  6.5.0
Classes | Enumerations | Functions
UNV164 Namespace Reference

Classes

struct  MESHDRIVERUNV_EXPORT

Enumerations

enum  { LENGTH_FACTOR, FORCE_FACTOR, TEMP_FACTOR, TEMP_OFFSET }

Functions

MESHDRIVERUNV_EXPORT void Read (std::ifstream &in_stream, TRecord &theUnitsRecord)
MESHDRIVERUNV_EXPORT void Write (std::ofstream &out_stream)

Enumeration Type Documentation

anonymous enum
Enumerator:
LENGTH_FACTOR 
FORCE_FACTOR 
TEMP_FACTOR 
TEMP_OFFSET 

Definition at line 74 of file UNV164_Structure.hxx.


Function Documentation

void UNV164::Read ( std::ifstream &  in_stream,
TRecord &  theUnitsRecord 
)

Definition at line 36 of file UNV164_Structure.cxx.

{
  if(!in_stream.good())
    EXCEPTION(runtime_error,"ERROR: Input file not good.");

  if(!beginning_of_dataset(in_stream,_label_dataset))
    return;

  string num_buf;
  char line[theMaxLineLen];

  in_stream >> theUnitsRecord.units_code;
  in_stream.readsome( line, 20 );
  theUnitsRecord.units_description = line;
  in_stream >> theUnitsRecord.temp_mode;

  for ( int i = 0; i < 4; i++ )
  {
    in_stream >> num_buf;
    theUnitsRecord.factors[i] = D_to_e(num_buf);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void UNV164::Write ( std::ofstream &  out_stream)

Definition at line 59 of file UNV164_Structure.cxx.

{
  if(!out_stream.good())
    EXCEPTION(runtime_error,"ERROR: Output file not good.");
  
  out_stream<<"    -1" << endl;
  out_stream<<"  "<<_label_dataset << endl;

  out_stream<<"         1  SI: Meter (newton)         2"                                    << endl;
  out_stream<<"    1.0000000000000000E+0    1.0000000000000000E+0    1.0000000000000000E+0" << endl;
  out_stream<<"    2.7314999999999998E+2"                                                   << endl;

  out_stream<<"    -1"  << endl;
}

Here is the caller graph for this function: