Boost FileSystem

Boost FileSystem

The Boost FileSystem is a library part of the Boost. It gives portable access to many common file system functions that aren't in the C++ standard. The Boost FileSystem is not written for easy access to absolute paths, and its documentation discourages the use of them.

Functions

* bool is_directory(path& x)
* bool exists(path& x)
* bool symbolic_link_exists(path& x)
* bool is_empty(path& x)
* bool _is_empty(path& x) - alternate function used in the case when is_empty conflicts with a separate is_empty function.
* bool equivalent(path& x, path& y) - if two path names resolve to the same entity (for example, in some file systems "abc" is not the same file as "ABC", but in some file systems they are equivalent.
* intmax_t file_size(path& x) - returns the file size in bytes
* time_t last_write_time(path& x ) - returns the "last modified" time
* void last_write_time(path& x, time_t new_time ) - puts the "last modified" time in new_time
* path current_path()
* path& initial_path()
* path system_complete(path& x)
* path complete(path& x, path& base = initial_path() ):Operations:
* bool create_directory(path& x ) - creates a directory with the name of path x
* bool remove(path& x)
* unsigned long remove_all(path& x)
* void rename(path& old_path, path& new_path )
* void copy_file(path& source, path& destination)

Classes

path

Methods

* bool name_check(string& name):Decomposition functions:
* path root_path()
* string root_name()
* string root_directory()
* path relative_path()
* string leaf()
* path branch_path()
* string native_file_string()
* string native_directory_string() :Query functions:
* bool empty()
* bool is_complete()
* bool has_root_path()
* bool has_root_name()
* bool has_root_directory()
* bool has_relative_path()
* bool has_leaf()
* bool has_branch_path()

directory_iterator

A directory iterator must be used to see the files and folders inside the directory.

Constructors

* directory_iterator(path p)

External links

* [http://www.boost.org/libs/filesystem FileSystem]
* [http://engineering.meta-comm.com/resources/cs-win32_1_30_2_metacomm/libs/filesystem/doc/index.htm Metacomm's documentation of the Boost FileSystem]


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Boost C++ Libraries — infobox software name = Boost C++ Libraries caption = Boost logo latest release version = 1.36.0 latest release date = 14 August 2008 genre = Libraries license = [http://www.boost.org/LICENSE 1 0.txt Boost Software License] website =… …   Wikipedia

  • ZFS — Infobox Filesystem full name = ZFS name = ZFS developer = Sun Microsystems introduction os = OpenSolaris introduction date = November 2005 partition id = directory struct = Extensible hash table file struct = bad blocks struct = max filename size …   Wikipedia

  • Live CD — For musical recordings, see Live album. For the Ivri Lider album, see Live CD (album). Ubuntu 11.04 Beta 2 system running from a live CD, with the new Unity desktop environment A live CD, live DVD, or live disc is a CD or DVD containing a… …   Wikipedia

  • Non-standard RAID levels — Main article: RAID Although all RAID implementations differ from the specification to some extent, some companies have developed non standard RAID implementations that differ substantially from the standard. Non RAID drive architectures… …   Wikipedia

  • Comparison of MySQL database engines — This a comparison between the two primary database engines (InnoDB and MyISAM) for the MySQL database management system (DBMS). A database engine (or storage engine ) is the underlying software component that a DBMS uses to create, read, update… …   Wikipedia

  • Sun Microsystems — Sun Microsystems, Inc. Logo used from the 1990s until acquisition by Oracle Former type Subsidiary Industry Computer systems Computer software Fate …   Wikipedia

  • Creative ZEN — This article is about the digital media brand. For the portable media player, see ZEN (portable media player). The Creative ZEN (formerly known as Creative NOMAD Jukebox Zen) is a range of digital audio players (DAPs) and portable media players… …   Wikipedia

  • Microdrive — For other uses, see Microdrive (disambiguation). IBM 1 GB Microdrive Microdrive (MD) is a brand name for a miniature, 1 inch hard disk designed to fit in a CompactFlash (CF) Type II slot. The release of similar drives by other makers has led to… …   Wikipedia

  • Mac OS X — OSX redirects here. For other uses, see OSX (disambiguation). Mac OS X …   Wikipedia

  • University of Alberta — Infobox University name = University of Alberta native name = image size = 130px latin name = motto = Quaecumque Vera mottoeng = Whatsoever things are true established = 1908 closed = type = Public affiliation = endowment = $751Mcite web year =… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”