OpenASIP  2.0
Public Member Functions | List of all members
Path Class Reference

#include <FileSystem.hh>

Inheritance diagram for Path:
Inheritance graph
Collaboration diagram for Path:
Collaboration graph

Public Member Functions

 Path ()
 
 Path (const boost::filesystem::path &path)
 
Pathoperator= (const boost::filesystem::path &pathName)
 
 operator std::string () const
 
 operator TCEString () const
 
const char * c_str () const
 
virtual ~Path ()
 

Detailed Description

Class for handling paths.

Definition at line 197 of file FileSystem.hh.

Constructor & Destructor Documentation

◆ Path() [1/2]

Path::Path ( )

Constructs an empty Path.

Definition at line 1080 of file FileSystem.cc.

1080  : boost::filesystem::path() {
1081 }

◆ Path() [2/2]

Path::Path ( const boost::filesystem::path &  path)
explicit

Constructor for implicit conversion from boost::filesystem::path.

Definition at line 1086 of file FileSystem.cc.

1086  :
1087  boost::filesystem::path(path) {
1088 }

◆ ~Path()

Path::~Path ( )
virtual

Destructor.

Definition at line 1093 of file FileSystem.cc.

1093  {
1094 }

Member Function Documentation

◆ c_str()

const char * Path::c_str ( ) const

Returns C string of the path.

Definition at line 1128 of file FileSystem.cc.

1128  {
1129  return this->string().c_str();
1130 }

◆ operator std::string()

Path::operator std::string ( ) const

Allows conversion to std::string.

Definition at line 1113 of file FileSystem.cc.

1113  {
1114  return this->string();
1115 }

◆ operator TCEString()

Path::operator TCEString ( ) const

Allows conversion to TCEString.

Definition at line 1120 of file FileSystem.cc.

1120  {
1121  return this->string();
1122 }

◆ operator=()

Path & Path::operator= ( const boost::filesystem::path &  pathName)

Copy constructor.

Definition at line 1100 of file FileSystem.cc.

1100  {
1101  if (this == &pathName) {
1102  return *this;
1103  }
1104 
1105  boost::filesystem::path::assign(
1106  pathName.string().begin(), pathName.string().end());
1107  return *this;
1108 }

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