PLCnext API Documentation 23.6.0.37
FileMode.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/System/Core/Enum.hxx"
9
10namespace Arp { namespace System { namespace Commons { namespace Io
11{
12
23enum class FileMode
24{
26 None = 0,
30 CreateNew = 1,
34 Create = 2,
38 Open = 3,
42 OpenOrCreate = 4,
48 Truncate = 5,
53 Append = 6
54};
55
57// global stream operators of enum FileMode for logging and parsing
58ARP_CXX_SYMBOL_EXPORT std::ostream& operator<<(std::ostream& os, FileMode value);
59ARP_CXX_SYMBOL_EXPORT std::istream& operator>>(std::istream& is, FileMode& value);
60
61}}}} // end of namespace Arp::System::Commons::Io
@ System
System components used by the System, Device, Plc or Io domains.
FileMode
Contains constants for specifying how the OS should open a file.
Definition: FileMode.hpp:24
@ CreateNew
Creates a new file. An exception is raised if the file already exists.
@ OpenOrCreate
Opens the file for update, if it exists. Otherwise, creates a new file.
@ Append
Opens the file if it exists and seeks to the end. Otherwise, creates a new file.
@ Create
Creates a new file. If the file already exists, it is overwritten.
@ Truncate
Opens an existing file. Once opened, the file is truncated so that its size is zero bytes....
@ Open
Opens an existing file. An exception is raised if the file does not exist.
Root namespace for the PLCnext API