Advertisement
Guest User

Untitled

a guest
Apr 1st, 2011
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. //Config.h
  2.  
  3. /*
  4. Contains global constants
  5.  
  6. */
  7.  
  8. #pragma once
  9.  
  10. class Config
  11. {
  12. public:
  13.  
  14. static int OUTPUT_TO_FILE;
  15. static int NEED_TO_TRAIN;
  16. static int NO_FILE_TRAIN;
  17. static int NEED_TO_TEST;
  18. static int BYPASS_EVERYTHING;
  19. static int GENERATE_TRAIN_DATA;
  20. };
  21.  
  22. Config.cpp:
  23. #include "Config.h"
  24.  
  25. int OUTPUT_TO_FILE = false;
  26. int NEED_TO_TRAIN = false;
  27. int NO_FILE_TRAIN = false;
  28. int NEED_TO_TEST = false;
  29. int BYPASS_EVERYTHING = false;
  30. int GENERATE_TRAIN_DATA = false;
  31.  
  32. main.cpp:
  33. main(...)
  34. {
  35. ... //long method
  36. Config::NO_FILE_TRAIN = true;
  37. ... // lots more stuff
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement