JSBDoc.h 854 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #pragma once
  8. #include <Atomic/Container/Str.h>
  9. using namespace Atomic;
  10. namespace ToolCore
  11. {
  12. class JSBFunction;
  13. class JSBPackage;
  14. class JSBModule;
  15. class JSBDoc
  16. {
  17. public:
  18. void Emit(JSBPackage* package, const String& path);
  19. private:
  20. void Begin();
  21. void End();
  22. String GenFunctionDoc(JSBFunction* function);
  23. void ExportModuleEnums(JSBModule* module);
  24. void ExportModuleConstants(JSBModule* module);
  25. void ExportModuleClasses(JSBModule* module);
  26. void WriteToFile(const String& path);
  27. String source_;
  28. JSBPackage* package_;
  29. };
  30. }