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::wpath_traits Struct Reference

Public Types

typedef wstring external_string_type
 
typedef wstring internal_string_type
 

Public Member Functions

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

Static Public Member Functions

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

Private Attributes

bool _Is_locked
 
locale _Myloc
 

Member Typedef Documentation

Constructor & Destructor Documentation

tr2::sys::wpath_traits::wpath_traits ( )
inline
877  : _Is_locked(false)
878  { // default construct
879  }
bool _Is_locked
Definition: filesystem:906

Member Function Documentation

void tr2::sys::wpath_traits::imbue ( locale  _Loc)
inline
984  { // imbue with new locale
985  if (_Is_locked)
987  "wpath_traits::imbue locked");
988  _Is_locked = true;
989  _Myloc = _Loc;
990  }
basic_filesystem_error< path > filesystem_error
Definition: filesystem:829
#define _THROW_NCEE(x, y)
Definition: xstddef:79
locale _Myloc
Definition: filesystem:907
bool _Is_locked
Definition: filesystem:906
bool tr2::sys::wpath_traits::imbue ( locale  _Loc,
nothrow_t   
)
inline
896  { // imbue unlocked with new locale, return lock status
897  if (!_Is_locked)
898  _Myloc = _Loc;
899 
900  bool _Retval = _Is_locked;
901  _Is_locked = true;
902  return (_Retval);
903  }
locale _Myloc
Definition: filesystem:907
bool _Is_locked
Definition: filesystem:906
static external_string_type tr2::sys::wpath_traits::to_external ( const wpath ,
const internal_string_type _Istr 
)
inlinestatic
883  { // convert to external format
884  return (_Istr);
885  }
static internal_string_type tr2::sys::wpath_traits::to_internal ( const wpath ,
const external_string_type _Xstr 
)
inlinestatic
889  { // convert to internal format
890  return (_Xstr);
891  }

Member Data Documentation

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

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