common_util
Loading...
Searching...
No Matches
Classes | Functions
filepath.h File Reference

The class for file path operations. More...

#include <string>
#include <iostream>
#include <cstdio>
#include "filetype.h"

Go to the source code of this file.

Classes

class  cutl::filepath
 The class for file path operations. More...
 

Functions

std::ostream & cutl::operator<< (std::ostream &os, const filepath &fp)
 Define the output stream operator for filepath object.
 
filepath cutl::path (const std::string &path)
 Create a filepath object from a string.
 

Detailed Description

The class for file path operations.

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.

Author
spencer.luo
Date
2024-05-13

Function Documentation

◆ operator<<()

std::ostream & cutl::operator<< ( std::ostream & os,
const filepath & fp )

Define the output stream operator for filepath object.

Parameters
osthe std::ostream object
fpthe filepath object to be output
Returns
std::ostream& the reference of the std::ostream object after outputing the filepath object.

◆ path()

filepath cutl::path ( const std::string & path)

Create a filepath object from a string.

Parameters
pathfile path string
Returns
filepath object