company logo

File :: File - Constructor

The constructor creates a file object without opening the file. The file is opened implicitly when being accessed and was not opened before.

Implementation overview

Implementation details

  1. Create file with path and access mode
    File  :: File ( odaba::String &sFilePath, odaba::AccessModes eAccessMode )

    The file path is set to sFilePath and accessMode to the access mode passed in eAccessMode.

    • sFilePath - Complete file path
    • eAccessMode - Access mode

      Access mode for a property handle or database.

  2. to list
  3. Create a copy tor the file handle
    File  :: File ( odaba::utils::File &cFile )

    A copy for the file handle, but not for the file object is created. The file object is shared with the file handle passed in cFile.

    • cFile - - internal feature (not documented)
  4. to list
  5. Create empty file
    File  :: File (  )

    In order to access the file, path and accessMode have to be set later on.

  6. to list
  7. Create file with path
    File  :: File ( odaba::String &sFilePath )

    The file path is set to sFilePath and accessMode to the Read.

    • sFilePath - Complete file path
  8. to list