Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
TempPath Class Reference

#include <temp_path.h>

Public Types

enum  Location { Local }
 

Public Member Functions

 TempPath (absl::string_view prefix)
 
 TempPath (absl::string_view prefix, absl::Status *status)
 
 TempPath (TempPath &&rhs)
 TempPath is moveable, but not copyable.
 
 TempPath (const TempPath &rhs)=delete
 
TempPathoperator= (TempPath &&rhs)
 
TempPathoperator= (const TempPath &rhs)=delete
 
 ~TempPath ()
 
std::string path () const
 Returns the path which was created by this object.
 

Static Public Member Functions

static TempPathCreate (Location location)
 

Static Public Attributes

static constexpr int kDefaultMode = 0777
 default mode to create directories (a+rwx):
 

Detailed Description

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 23 of file temp_path.h.

Member Enumeration Documentation

◆ Location

Enumerator
Local 

Definition at line 42 of file temp_path.h.

Constructor & Destructor Documentation

◆ TempPath() [1/4]

TempPath::TempPath ( absl::string_view prefix)
explicit

Definition at line 37 of file temp_path.cc.

◆ TempPath() [2/4]

TempPath::TempPath ( absl::string_view prefix,
absl::Status * status )

Definition at line 41 of file temp_path.cc.

◆ TempPath() [3/4]

TempPath::TempPath ( TempPath && rhs)

TempPath is moveable, but not copyable.

Definition at line 46 of file temp_path.cc.

◆ TempPath() [4/4]

TempPath::TempPath ( const TempPath & rhs)
delete

◆ ~TempPath()

TempPath::~TempPath ( )

Definition at line 54 of file temp_path.cc.

Member Function Documentation

◆ Create()

TempPath * TempPath::Create ( Location location)
static

Definition at line 56 of file temp_path.cc.

◆ operator=() [1/2]

TempPath & TempPath::operator= ( const TempPath & rhs)
delete

◆ operator=() [2/2]

TempPath & TempPath::operator= ( TempPath && rhs)

Definition at line 48 of file temp_path.cc.

◆ path()

std::string TempPath::path ( ) const
inline

Returns the path which was created by this object.

Definition at line 40 of file temp_path.h.

Member Data Documentation

◆ kDefaultMode

int TempPath::kDefaultMode = 0777
staticconstexpr

default mode to create directories (a+rwx):

Definition at line 26 of file temp_path.h.


The documentation for this class was generated from the following files: