long long ReadValues(DewStream *Src, TPrecision Precision) const;
Read values content from stream to object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | DewStream * | |
| 2 | Precision | TPrecision |
Remarks:
Reads values content from SrcStream stream to calling objct. No other values describing the data type or length are read from the DstStream. Number type is defined by the Precision parameter, which can be obtained from Vector::ReadHeader method call.
Note
Use this method separately only, if you want user defined storage format.
Examples
#include "Math387.h"
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Vector b;
FileStream* AStream;
TPrecision Precision;
AStream = new FileStream("airpass.vec", FileMode::Open);
Precision = b.ReadHeader(AStream); // Read info for b
b.ReadValues(AStream, Precision); // Read values of b
delete AStream;
}
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler