Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
PiaRead::read Method

Reads case from file.

C++
unsigned int read(
    std::istream& in
);
Parameters 
Description 
std::istream& in 
Input stream. 

Returns one of the following possible values: 

  • 0: successful read, with another record following.
  • PIA_IDS_READEOF successful read, with end of file following.
  • PIA_IDS_READMORE successful read, with additional data following (for subclass).
  • Other positive value: unsuccessful read.
 

Call WorkerDataGeneral::deleteContents for the worker and each family member before this function if reading more than one case.

Exceptions 
Description 
PiaException of type PIA_IDS_READERR if error reading file. 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!