Viskores  1.0
RuntimeDeviceConfigurationOptions.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_cont_internal_RuntimeDeviceConfigurationOptions_h
19 #define viskores_cont_internal_RuntimeDeviceConfigurationOptions_h
20 
22 
25 
26 #include <vector>
27 
28 namespace viskores
29 {
30 namespace cont
31 {
32 namespace internal
33 {
34 
38 class VISKORES_CONT_EXPORT RuntimeDeviceConfigurationOptions
39 {
40 public:
41  VISKORES_CONT RuntimeDeviceConfigurationOptions();
42 
45  VISKORES_CONT RuntimeDeviceConfigurationOptions(std::vector<option::Descriptor>& usage);
46 
49  VISKORES_CONT RuntimeDeviceConfigurationOptions(int& argc, char* argv[]);
50 
51  VISKORES_CONT virtual ~RuntimeDeviceConfigurationOptions() noexcept;
52 
55  VISKORES_CONT void Initialize(const option::Option* options);
56  VISKORES_CONT bool IsInitialized() const;
57 
58  RuntimeDeviceOption ViskoresNumThreads;
59  RuntimeDeviceOption ViskoresDeviceInstance;
60 
61 protected:
65  VISKORES_CONT RuntimeDeviceConfigurationOptions(const bool& useOptionIndex);
66 
67 private:
68  bool Initialized;
69 };
70 
71 } // namespace viskores::cont::internal
72 } // namespace viskores::cont
73 } // namespace viskores
74 
75 #endif // viskores_cont_internal_RuntimeDeviceConfigurationOptions_h
RuntimeDeviceOption.h
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
OptionParserArguments.h
viskores::cont::Initialize
InitializeResult Initialize(int &argc, char *argv[], InitializeOptions opts=InitializeOptions::None)
Initialize the Viskores library, parsing arguments when provided:
viskores_cont_export.h