void* PixelData;
size_t lgrTotale;
int Parsed; // weather allready parsed
- string OrigFileName; // To avoid file overwrite
+ std::string OrigFileName; // To avoid file overwrite
void SwapZone(void* im, int swap, int lgr, int nb);
bool ReadPixelData(void * destination);
protected:
- int WriteBase(string FileName, FileType type);
+ int WriteBase(std::string FileName, FileType type);
public:
- gdcmFile(string & filename);
+ gdcmFile(std::string & filename);
gdcmFile(const char * filename);
// For promotion (performs a deepcopy of pointed header object)
// TODO Swig ~gdcmFile();
// On writing purposes. When instance was created through
- // gdcmFile(string filename) then the filename argument MUST be different
- // from the constructor's one (no overwriting allowed).
- // TODO Swig int SetFileName(string filename);
+ // gdcmFile(std::string filename) then the filename argument MUST be
+ // different from the constructor's one (no overwriting allowed).
+ // TODO Swig int SetFileName(std::string filename);
- void SetPixelDataSizeFromHeader(void);
- // Returns size (in bytes) of required memory to contain data
- // represented in this file.
+ void SetPixelDataSizeFromHeader(void);
size_t GetImageDataSize();
-
- // Allocates necessary memory, copies the data (image[s]/volume[s]) to
- // newly allocated zone and return a pointer to it:
- void * GetImageData();
-
- // Copies (at most MaxSize bytes) of data to caller's memory space.
- // Returns an error code on failure (if MaxSize is not big enough)
+ void * GetImageData();
size_t GetImageDataIntoVector(void* destination, size_t MaxSize );
// Allocates ExpectedSize bytes of memory at this->Data and copies the
// Aucun test n'est fait sur l'"Endiannerie" du processeur.
// Ca sera à l'utilisateur d'appeler son Reader correctement
- int WriteRawData (string nomFichier);
- int WriteDcmImplVR(string nomFichier);
+ int WriteRawData (std::string nomFichier);
+ int WriteDcmImplVR(std::string nomFichier);
int WriteDcmImplVR(const char * nomFichier);
- int WriteDcmExplVR(string nomFichier);
- int WriteAcr (string nomFichier);
+ int WriteDcmExplVR(std::string nomFichier);
+ int WriteAcr (std::string nomFichier);
};
#endif