VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
algorithmManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrfutil/vrfutilDefines.h>
14 #include <string>
15 
16 #include <boost/noncopyable.hpp>
17 
18 #define Dt_THROW_ALGORITHM_EXCEPTION(errorMsg) \
19  throw DtAlgorithmManager::Exception( \
20  errorMsg, __DtFUNC__, DtFilename::stripPath(__FILE__), __LINE__, 0)
21 
24 class DT_DLL_vrfutil DtAlgorithmManager : boost::noncopyable
25 {
26 public:
28 
29  enum Severity
30  {
35  DEBUG_LEVEL
36  };
37 
39  virtual void message(Severity, const std::string&) const;
40 
41  void errorMessage(const std::string&) const;
42  void warnMessage(const std::string&) const;
43  void infoMessage(const std::string&) const;
44  void verboseMessage(const std::string&) const;
45  void debugMessage(const std::string&) const;
46 
48  virtual bool cancel() const;
49 };
Definition: algorithmManager.h:34
Definition: algorithmManager.h:31
Severity
Definition: algorithmManager.h:29
DtTaggedException< DtAlgorithmManager > Exception
Definition: algorithmManager.h:27
Definition: algorithmManager.h:32
Create a new MAK exception type that inherits from boost::exception. Tag is what differentiates this ...
Definition: taggedException.h:15
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
General interface which can be passed into an algorithm to control its behavior.
Definition: algorithmManager.h:24
Definition: algorithmManager.h:33

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)