#include <fstream>
#include <iostream>
#include <cstring>
using namespace std;
#include "SkipSpaces.h"
istream& operator>> ( istream& stream, Book& b ) {
char buffer[129];
stream.getline( buffer, 129, '|' );
SkipSpaces( buffer );
b.PutValue( 1, buffer );
if ( strlen( buffer ) == 0 ) return( stream );
stream.getline( buffer, 32, '|' );
SkipSpaces( buffer );
b.PutValue( 2, buffer );
stream.getline( buffer, 32, '|' );
SkipSpaces( buffer );
b.PutValue( 3, buffer );
stream.getline( buffer, 32, '|' );
SkipSpaces( buffer );
b.PutValue( 4, buffer );
return( stream );
}
|
|
|
|