STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

basic_current_directory Class Template Reference
[File-System Library (UNIXSTL)]

Represents the current directory. More...

#include <unixstl_current_directory.h>

List of all members.

Public Types

typedef C char_type
 The char type.

typedef T traits_type
 The traits type.

typedef basic_current_directory<
C, T > 
class_type
 The current parameterisation of the type.

typedef us_size_t size_type
 The size type.


Public Methods

 basic_current_directory ()
 Default constructor.

char_type const * get_path () const
 Returns a non-mutable (const) pointer to the path.

char_type const * c_str () const
 Returns a pointer to a nul-terminated string.

size_type length () const
 Returns the length of the converted path.

 operator char_type const * () const
 Implicit conversion to a non-mutable (const) pointer to the path.


Static Public Methods

size_type get_path (char_type *buffer, size_type cchBuffer)
 Gets the current directory into the given buffer.


Detailed Description

template<typename C, typename T = filesystem_traits<C>>
class unixstl::basic_current_directory< C, T >

Represents the current directory.

Parameters:
C  The character type
T  The traits type. On translators that support default template arguments, this defaults to filesystem_traits<C>


Member Typedef Documentation

typedef C char_type
 

The char type.

typedef basic_current_directory<C, T> class_type
 

The current parameterisation of the type.

typedef us_size_t size_type
 

The size type.

typedef T traits_type
 

The traits type.


Constructor & Destructor Documentation

basic_current_directory  
 

Default constructor.


Member Function Documentation

char_type const* c_str  
 

Returns a pointer to a nul-terminated string.

char_type const* get_path  
 

Returns a non-mutable (const) pointer to the path.

size_type get_path char_type   buffer,
size_type    cchBuffer
[static]
 

Gets the current directory into the given buffer.

size_type length  
 

Returns the length of the converted path.

operator char_type const *   const [inline]
 

Implicit conversion to a non-mutable (const) pointer to the path.


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004