Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.5KB

  1. /**
  2. * projectM -- Milkdrop-esque visualisation SDK
  3. * Copyright (C)2003-2007 projectM Team
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. * See 'LICENSE.txt' included within this release
  19. *
  20. */
  21. /**
  22. * $Id$
  23. *
  24. * Initial condition
  25. *
  26. * $Log$
  27. */
  28. #ifndef _INIT_COND_HPP
  29. #define _INIT_COND_HPP
  30. //#define INIT_COND_DEBUG 2
  31. #define INIT_COND_DEBUG 0
  32. #include "Param.hpp"
  33. class InitCond;
  34. class Param;
  35. #include <map>
  36. class InitCond {
  37. public:
  38. Param *param;
  39. CValue init_val;
  40. static char init_cond_string_buffer[STRING_BUFFER_SIZE];
  41. static int init_cond_string_buffer_index;
  42. InitCond( Param * param, CValue init_val);
  43. ~InitCond();
  44. void evaluate(); //Wrapper around following declaration
  45. void evaluate(bool evalUser);
  46. void init_cond_to_string();
  47. void write_init();
  48. };
  49. #endif /** !_INIT_COND_H */