* @param tmpnametemplate Path of the temporary file to be opened.
* The last 6 characters must be XXXXXX and they
* will be replaced with something random.
- * @param mode std::ios_base::open_mode to open the file with
+ * @param mode std::ios_base::openmode to open the file with
* @param buffer_size The size of any buffers that need to be allocated
* @param buffer_size The size of the putback buffer, relevant only for fstream
*/
tmpfstreamTempl(const std::string& tmpnametemplate,
- std::ios_base::open_mode mode = std::ios_base::out,
+ std::ios_base::openmode mode = std::ios_base::out,
int buffer_size = -1 , int pback_size = -1)
: bio::stream<Device, Tr, Alloc>()
, unlinked(false)
}
bool open(const std::string& tmpnametemplate,
- std::ios_base::open_mode mode = std::ios_base::out,
+ std::ios_base::openmode mode = std::ios_base::out,
int buffer_size = -1 , int pback_size = -1);
/**
* The temporary file will be in the same directory with .tmp.XXXXXX appended.
*
* @param filename The original filename which will be replaced on close
- * @param mode std::ios_base::open_mode to open the file with
+ * @param mode std::ios_base::openmode to open the file with
* @param buffer_size The size of any buffers that need to be allocated
* @param buffer_size The size of the putback buffer, relevant only for fstream
*/
tmpfcopystreamTempl(const std::string& filename,
- std::ios_base::open_mode mode = std::ios_base::out,
+ std::ios_base::openmode mode = std::ios_base::out,
int buffer_size = -1 , int pback_size = -1)
: tmpfstreamTempl<Device, Tr, Alloc>(filename+default_template_suffix,mode,buffer_size,pback_size)
, originalfilename(filename)
* @param tmpnametemplate Path of the temporary file to be opened.
* The last 6 characters must be XXXXXX and they
* will be replaced with something random.
- * @param mode std::ios_base::open_mode to open the file with
+ * @param mode std::ios_base::openmode to open the file with
* @param buffer_size The size of any buffers that need to be allocated
* @param buffer_size The size of the putback buffer, relevant only for fstream
*/
tmpfcopystreamTempl(const std::string& filename,
const std::string& tmpnametemplate,
- std::ios_base::open_mode mode = std::ios_base::out,
+ std::ios_base::openmode mode = std::ios_base::out,
int buffer_size = -1 , int pback_size = -1)
: tmpfstreamTempl<Device, Tr, Alloc>(tmpnametemplate,mode,buffer_size,pback_size)
, originalfilename(filename)
* The temporary file will be in the same directory with .tmp.XXXXXX appended.
*
* @param filename The original filename which will be replaced on close
- * @param mode std::ios_base::open_mode to open the file with
+ * @param mode std::ios_base::openmode to open the file with
* @param buffer_size The size of any buffers that need to be allocated
* @param buffer_size The size of the putback buffer, relevant only for fstream
* @retval true if successful
*/
bool open(const std::string& filename,
- std::ios_base::open_mode mode = std::ios_base::out,
+ std::ios_base::openmode mode = std::ios_base::out,
int buffer_size = -1 , int pback_size = -1)
{
originalfilename=filename;
* @param tmpnametemplate Path of the temporary file to be opened.
* The last 6 characters must be XXXXXX and they
* will be replaced with something random.
- * @param mode std::ios_base::open_mode to open the file with
+ * @param mode std::ios_base::openmode to open the file with
* @param buffer_size The size of any buffers that need to be allocated
* @param buffer_size The size of the putback buffer, relevant only for fstream
* @retval true if successful
*/
bool open(const std::string& filename,
const std::string& tmpnametemplate,
- std::ios_base::open_mode mode = std::ios_base::out,
+ std::ios_base::openmode mode = std::ios_base::out,
int buffer_size = -1 , int pback_size = -1)
{
originalfilename=filename;
* @param tmpnametemplate Path of the temporary file to be opened.
* The last 6 characters must be XXXXXX and they
* will be replaced with something random.
-* @param mode std::ios_base::open_mode to open the file with
+* @param mode std::ios_base::openmode to open the file with
* @param buffer_size The size of any buffers that need to be allocated
* @param buffer_size The size of the putback buffer, relevant only for fstream
* @retval true if successful
*/
template< typename Device, typename Tr, typename Alloc >
bool tmpfstreamTempl<Device,Tr,Alloc>::open(const std::string& tmpnametemplate,
- std::ios_base::open_mode mode,
+ std::ios_base::openmode mode,
int buffer_size, int pback_size)
{
if (tmpfstreamTempl<Device,Tr,Alloc>::is_open())