Back to index

salome-kernel  6.5.0
Public Member Functions | Protected Attributes
Engines_TMPFile_i Class Reference

#include <SALOMEDS_TMPFile_i.hxx>

List of all members.

Public Member Functions

 Engines_TMPFile_i (Engines::TMPFile *theStream)
virtual size_t Size ()
virtual TOctet & Get (size_t)

Protected Attributes

Engines::TMPFile_var myStream

Detailed Description

Definition at line 52 of file SALOMEDS_TMPFile_i.hxx.


Constructor & Destructor Documentation

Definition at line 63 of file SALOMEDS_TMPFile_i.cxx.

                                            :
  myStream(theStream)
{}

Member Function Documentation

SALOMEDSImpl_TMPFile::TOctet & Engines_TMPFile_i::Get ( size_t  theIndex) [virtual]

Definition at line 79 of file SALOMEDS_TMPFile_i.cxx.

{
  if(!&myStream.in())
    throw std::out_of_range("Engines_TMPFile_i::Get(size_t) const - !&myStream.in()");

  if(theIndex < 0 || theIndex >= myStream->length())
    throw std::out_of_range("Engines_TMPFile_i::Get(size_t) const - theIndex < 0 || theIndex >= myStream->length()");

  return myStream[theIndex];
}
size_t Engines_TMPFile_i::Size ( ) [virtual]

Definition at line 69 of file SALOMEDS_TMPFile_i.cxx.

{
  if(!&myStream.in())
    return 0;

  return myStream->length();
}

Member Data Documentation

Engines::TMPFile_var Engines_TMPFile_i::myStream [protected]

Definition at line 62 of file SALOMEDS_TMPFile_i.hxx.


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