comparison libinterp/corefcn/gzfstream.h @ 30163:4412f57132c4

maint: use "m_" prefix for member variables in classes gzifstream, gzofstream. * gzfstream.cc, gzfstream.h: Use "m_" prefix for member variables in classes gzifstream, gzofstream.
author Rik <rik@octave.org>
date Sun, 12 Sep 2021 20:57:27 -0700
parents d809b99f1280
children a61e1a0f6024
comparison
equal deleted inserted replaced
30162:5acddd64527e 30163:4412f57132c4
305 /** 305 /**
306 * Obtain underlying stream buffer. 306 * Obtain underlying stream buffer.
307 */ 307 */
308 gzfilebuf* 308 gzfilebuf*
309 rdbuf () const 309 rdbuf () const
310 { return const_cast<gzfilebuf *>(&sb); } 310 { return const_cast<gzfilebuf *>(&m_sb); }
311 311
312 /** 312 /**
313 * @brief Check if file is open. 313 * @brief Check if file is open.
314 * @return True if file is open. 314 * @return True if file is open.
315 */ 315 */
316 bool 316 bool
317 is_open () { return sb.is_open (); } 317 is_open () { return m_sb.is_open (); }
318 318
319 /** 319 /**
320 * @brief Open gzipped file. 320 * @brief Open gzipped file.
321 * @param name Filename. 321 * @param name Filename.
322 * @param mode Open mode flags (forced to contain ios::in). 322 * @param mode Open mode flags (forced to contain ios::in).
354 354
355 private: 355 private:
356 /** 356 /**
357 * Underlying stream buffer. 357 * Underlying stream buffer.
358 */ 358 */
359 gzfilebuf sb; 359 gzfilebuf m_sb;
360 }; 360 };
361 361
362 /** 362 /**
363 * @brief Gzipped file output stream class. 363 * @brief Gzipped file output stream class.
364 * 364 *
392 /** 392 /**
393 * Obtain underlying stream buffer. 393 * Obtain underlying stream buffer.
394 */ 394 */
395 gzfilebuf* 395 gzfilebuf*
396 rdbuf () const 396 rdbuf () const
397 { return const_cast<gzfilebuf *>(&sb); } 397 { return const_cast<gzfilebuf *>(&m_sb); }
398 398
399 /** 399 /**
400 * @brief Check if file is open. 400 * @brief Check if file is open.
401 * @return True if file is open. 401 * @return True if file is open.
402 */ 402 */
403 bool 403 bool
404 is_open () { return sb.is_open (); } 404 is_open () { return m_sb.is_open (); }
405 405
406 /** 406 /**
407 * @brief Open gzipped file. 407 * @brief Open gzipped file.
408 * @param name Filename. 408 * @param name Filename.
409 * @param mode Open mode flags (forced to contain ios::out). 409 * @param mode Open mode flags (forced to contain ios::out).
441 441
442 private: 442 private:
443 /** 443 /**
444 * Underlying stream buffer. 444 * Underlying stream buffer.
445 */ 445 */
446 gzfilebuf sb; 446 gzfilebuf m_sb;
447 }; 447 };
448 448
449 /** 449 /**
450 * @brief Gzipped file output stream manipulator class. 450 * @brief Gzipped file output stream manipulator class.
451 * 451 *