GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
mach-info.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1996-2017 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_mach_info_h)
24 #define octave_mach_info_h 1
25 
26 #include "octave-config.h"
27 
28 #include <string>
29 
30 namespace octave
31 {
32  class
33  OCTAVE_API
34  mach_info
35  {
36  protected:
37 
38  mach_info (void);
39 
40  public:
41 
43  {
47  };
48 
49  static bool instance_ok (void);
50 
51  static float_format native_float_format (void);
52 
53  static bool words_big_endian (void);
54 
55  static bool words_little_endian (void);
56 
57  static float_format string_to_float_format (const std::string&);
58 
59  static std::string float_format_as_string (float_format);
60 
61  private:
62 
64 
65  static void cleanup_instance (void) { delete instance; instance = 0; }
66 
67  // The floating point format for the current machine.
69 
70  // TRUE if the byte order on this system is big endian.
71  mutable bool big_chief;
72 
73  // No copying!
74 
75  mach_info (const mach_info&);
76 
77  mach_info& operator = (const mach_info&);
78  };
79 }
80 
81 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
82 
83 OCTAVE_DEPRECATED ("use 'octave::mach_info' instead")
84 typedef octave::mach_info oct_mach_info;
85 
86 #endif
87 
88 #endif
float_format native_float_fmt
Definition: mach-info.h:68
Octave interface to the compression and uncompression libraries.
Definition: aepbalance.cc:47
static mach_info * instance
Definition: mach-info.h:63
static void cleanup_instance(void)
Definition: mach-info.h:65
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
Definition: utils.cc:854