STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
tr2::sys::path_traits Struct Reference

Public Types

typedef string external_string_type
 
typedef string internal_string_type
 

Public Member Functions

 path_traits ()
 
void imbue (locale _Loc)
 
bool imbue (locale _Loc, nothrow_t)
 

Static Public Member Functions

static external_string_type to_external (const path &, const internal_string_type &_Istr)
 
static internal_string_type to_internal (const path &, const external_string_type &_Xstr)
 

Private Attributes

bool _Is_locked
 
locale _Myloc
 

Member Typedef Documentation

Constructor & Destructor Documentation

tr2::sys::path_traits::path_traits ( )
inline
838  : _Is_locked(false)
839  { // default construct
840  }
bool _Is_locked
Definition: filesystem:867

Member Function Documentation

void tr2::sys::path_traits::imbue ( locale  _Loc)
inline
975  { // imbue with new locale
976  if (_Is_locked)
978  "path_traits::imbue locked");
979  _Is_locked = true;
980  _Myloc = _Loc;
981  }
bool _Is_locked
Definition: filesystem:867
basic_filesystem_error< path > filesystem_error
Definition: filesystem:829
#define _THROW_NCEE(x, y)
Definition: xstddef:79
locale _Myloc
Definition: filesystem:868
bool tr2::sys::path_traits::imbue ( locale  _Loc,
nothrow_t   
)
inline
857  { // imbue unlocked with new locale, return lock status
858  if (!_Is_locked)
859  _Myloc = _Loc;
860 
861  bool _Retval = _Is_locked;
862  _Is_locked = true;
863  return (_Retval);
864  }
bool _Is_locked
Definition: filesystem:867
locale _Myloc
Definition: filesystem:868
static external_string_type tr2::sys::path_traits::to_external ( const path ,
const internal_string_type _Istr 
)
inlinestatic
844  { // convert to external format
845  return (_Istr);
846  }
static internal_string_type tr2::sys::path_traits::to_internal ( const path ,
const external_string_type _Xstr 
)
inlinestatic
850  { // convert to internal format
851  return (_Xstr);
852  }

Member Data Documentation

bool tr2::sys::path_traits::_Is_locked
private
locale tr2::sys::path_traits::_Myloc
private

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