enum cv::FileStorage::Mode

Overview

file storage mode Moreā€¦

#include <persistence.hpp>

enum Mode
{
    READ         = 0,
    WRITE        = 1,
    APPEND       = 2,
    MEMORY       = 4,
    FORMAT_MASK  = (7<<3),
    FORMAT_AUTO  = 0,
    FORMAT_XML   = (1<<3),
    FORMAT_YAML  = (2<<3),
    FORMAT_JSON  = (3<<3),
    BASE64       = 64,
    WRITE_BASE64 = BASE64 | WRITE,
};

Detailed Documentation

file storage mode

Enum Values

READ

value, open the file for reading

WRITE

value, open the file for writing

APPEND

value, open the file for appending

MEMORY

flag, read data from source or write data to the internal buffer (which is returned by FileStorage::release)

FORMAT_MASK

mask for format flags

FORMAT_AUTO

flag, auto format

FORMAT_XML

flag, XML format

FORMAT_YAML

flag, YAML format

FORMAT_JSON

flag, JSON format

BASE64

flag, write rawdata in Base64 by default. (consider using WRITE_BASE64)

WRITE_BASE64

flag, enable both WRITE and BASE64