Namespaces | Functions

file_io.h File Reference

#include <iostream>
#include <dirent.h>
#include <vector>
#include <algorithm>
#include "pcl/common/impl/file_io.hpp"
Include dependency graph for file_io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Detailed Description

Define some helper functions for reading and writing files.

Todo:
move this to pcl::console

Definition in file file_io.h.

Namespaces

namespace  pcl

Functions

void pcl::getAllPcdFilesInDirectory (const std::string &directory, std::vector< std::string > &file_names)
 Find all *.pcd files in the directory and return them sorted.
std::string pcl::getFilenameWithoutPath (const std::string &input)
 Remove the path from the given string and return only the filename (the remaining string after the last '/').
std::string pcl::getFilenameWithoutExtension (const std::string &input)
 Remove the extension from the given string and return only the filename (everything before the last '.
std::string pcl::getFileExtension (const std::string &input)
 Get the file extension from the given string (the remaining string after the last '.