VISR  0.11.1
Versatile Interactive Scene Renderer
argument_list.hpp
Go to the documentation of this file.
1 /* Copyright Institute of Sound and Vibration Research - All rights reserved */
2 
3 #ifndef VISR_MAXMSP_MAXSUPPORT_ARGUMENT_LIST_HPP_INCLUDED
4 #define VISR_MAXMSP_MAXSUPPORT_ARGUMENT_LIST_HPP_INCLUDED
5 
6 #include "export_symbols.hpp"
7 
8 #include <boost/algorithm/string.hpp>
9 
10 #include <algorithm>
11 #include <cstddef>
12 #include <iterator>
13 #include <string>
14 #include <vector>
15 
16 // Include the Max headers last, as they do some unpleasant stuff (redefinition of min,max,error,...)
17 
18 /* Super-safe determination of the MAX define for setting the operating system. */
19 #ifdef __APPLE_CC__
20 #ifndef MAC_VERSION
21 #define MAC_VERSION
22 #undef WIN_VERSION
23 #endif
24 #else
25 #ifdef _MSC_VER
26 #ifndef WIN_VERSION
27 #define WIN_VERSION
28 #endif
29 #undef MAC_VERSION
30 #endif
31 #endif
32 
33 #include <ext.h>
34 #include <ext_obex.h>
35 #include "z_dsp.h"
36 
37 namespace visr
38 {
39 namespace maxmsp
40 {
41 
52  {
53  public:
59  explicit ArgumentList( short argc, t_atom *argv );
60 
66  std::size_t argc() const;
67 
73  char const * const * argv() const;
74 
75  private:
79  std::vector< std::string > mArguments;
80 
84  std::vector<char const *> mArgPointers;
85  };
86 
87 } // namespace maxmsp
88 } // namespace visr
89 
90 #endif // VISR_MAXMSP_MAXSUPPORT_ARGUMENT_LIST_HPP_INCLUDED
#define VISR_MAXSUPPORT_LIBRARY_SYMBOL
Definition: export_symbols.hpp:30
Definition: options.cpp:10
Definition: argument_list.hpp:51