basic_cwd_stack Class Template Reference
[File System Library]

#include <platformstl/filesystem/cwd_stack.hpp>

List of all members.


Detailed Description

template<typename C, typename XP = platformstl::platform_exception_policy>
class platformstl::basic_cwd_stack< C, XP >

Acts as a stack for current working directory changes, setting the current working directory with push(), and resetting to its previous value with pop().

Public Types

typedef C char_type
typedef XP exception_policy_type
typedef
stlsoft::basic_simple_string
< C > 
string_type
typedef bool bool_type
typedef stlsoft::size_t size_type

Public Member Functions

string_type const & top () const
void push (string_type const &directory)
void pop ()
 
Exceptions:
platformstl::platform_exception Thrown if the directory

bool_type try_pop ()
bool_type empty () const
 Indicates whether the stack is empty.
bool_type is_empty () const
 [DEPRECATED] Indicates whether the stack is empty
size_type size () const
 Indicates the number of directories in the stack.

Member Function Documentation

void pop (  ) 

Exceptions:
platformstl::platform_exception Thrown if the directory

bool_type try_pop (  ) 

Remarks:
If fails, then platformstl::system_traits<C>::get_last_error() gives the error

bool_type empty (  )  const

Indicates whether the stack is empty.

bool_type is_empty (  )  const

[DEPRECATED] Indicates whether the stack is empty

Deprecated:
Use empty() instead

size_type size (  )  const

Indicates the number of directories in the stack.


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

Generated on Thu Jun 10 08:58:32 2010 for STLSoft by  doxygen 1.5.6