bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Explanations on MappedFile


From: Damien Vincent
Subject: Explanations on MappedFile
Date: Thu, 26 Sep 2002 18:22:55 +0200
User-agent: Mutt/1.3.28i

  Hi,

I'd like to know why all types (Mapping, Access, ...) are in the protected 
section of the class "File". With this design, you can't make a MappedFile 
object since in the constructor of this class, you need to specify an access 
mode (-> MappedFile (const char *fname, Access mode) ).
So, the only way to create a mapped file is to make a class which derives from 
MappedFile.
With the version 1.6.4 of the library, you can make an instance of the 
MappedFile class.

  Thanks,

Damien




reply via email to

[Prev in Thread] Current Thread [Next in Thread]