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.

29 lines
592B

  1. #pragma once
  2. /**
  3. * Interface that must be implemented by all composites.
  4. * Enables compiling for v1
  5. */
  6. class IComposite
  7. {
  8. public:
  9. class Config
  10. {
  11. public:
  12. Config(float a, float b, float c, const char* n)
  13. {
  14. min=a;
  15. max=b;
  16. def=c;
  17. name=n;
  18. }
  19. float min=0;
  20. float max=0;
  21. float def=0;
  22. const char* name;
  23. // When you add more fields here, make sure
  24. // to add them to testIComposite.cpp
  25. };
  26. virtual Config getParam(int i)=0;
  27. virtual int getNumParams()=0;
  28. };