1/*!
2 * \file   include/TFEL/System/wstreamView.ixx
3 * \brief
4 *
5 * \author Thomas Helfer
6 * \date   18 nov 2007
7 * \copyright Copyright (C) 2006-2018 CEA/DEN, EDF R&D. All rights
8 * reserved.
9 * This project is publicly released under either the GNU GPL Licence
10 * or the CECILL-A licence. A copy of thoses licences are delivered
11 * with the sources of TFEL. CEA or EDF may also distribute this
12 * project under specific licensing conditions.
13 */
14
15#ifndef LIB_TFEL_WSTREAMVIEWIXX
16#define LIB_TFEL_WSTREAMVIEWIXX
17
18namespace tfel
19{
20
21  namespace system
22  {
23
24    template<bool isBlocking>
25    TFEL_INLINE2
26    wstreamView<isBlocking>::wstreamView(const int id)
27      : fd(id)
28    {} // end of wstreamView<isBlocking>::wstreamView
29
30    template<bool isBlocking>
31    TFEL_INLINE2
32    int
33    wstreamView<isBlocking>::getFileDescriptor() const
34    {
35      return this->fd;
36    } // end of wstreamView<isBlocking>::getFileDescriptor
37
38  } // end of namespace system
39
40} // end of namespace tfel
41
42#endif /* LIB_TFEL_WSTREAMVIEWIXX */
43
44