mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-08 20:50:19 -06:00
# To run the script Make sure to install the latest Python API version `openspace-api 0.1.2` The script is located in `OpenSpace/support/assetvalidation`, the main script takes a few command line arguments `--dir` - specify the OpenSpace directory `--filter` - optionally supply a regex string to filter which assets to validate `--verbose` - flag to print debug info to log and also console (default off), if off only warnings and errors are logged `--start` - flag to start OpenSpace as a subprocess (default on) if this is off it assumes OpenSpace is already running, useful if you want to run OpenSpace via Visual Studio for example. `--at` - specify an index to start at a specific asset run eg: `python main.py --dir="C:/User/Desktop/OpenSpace" --filter="examples" --verbose=True --start=False --at=35`
50 lines
2.7 KiB
C++
50 lines
2.7 KiB
C++
/*****************************************************************************************
|
|
* *
|
|
* OpenSpace *
|
|
* *
|
|
* Copyright (c) 2014-2024 *
|
|
* *
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
|
* software and associated documentation files (the "Software"), to deal in the Software *
|
|
* without restriction, including without limitation the rights to use, copy, modify, *
|
|
* merge, publish, distribute, sublicense, and/or sell copies of the Software, and to *
|
|
* permit persons to whom the Software is furnished to do so, subject to the following *
|
|
* conditions: *
|
|
* *
|
|
* The above copyright notice and this permission notice shall be included in all copies *
|
|
* or substantial portions of the Software. *
|
|
* *
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, *
|
|
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A *
|
|
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT *
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF *
|
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE *
|
|
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
|
|
****************************************************************************************/
|
|
|
|
#ifndef __OPENSPACE_MODULE_SERVER___ERRORLOGTOPIC____H__
|
|
#define __OPENSPACE_MODULE_SERVER___ERRORLOGTOPIC____H__
|
|
|
|
#include <modules/server/include/topics/topic.h>
|
|
#include <ghoul/logging/log.h>
|
|
|
|
namespace openspace {
|
|
|
|
class ErrorLogTopic : public Topic {
|
|
public:
|
|
ErrorLogTopic() = default;
|
|
~ErrorLogTopic() override;
|
|
|
|
void handleJson(const nlohmann::json& json) override;
|
|
bool isDone() const override;
|
|
|
|
private:
|
|
bool _isSubscribedTo = false;
|
|
// Non owning but we remove the log from LogManager on destruction
|
|
ghoul::logging::Log* _log = nullptr;
|
|
};
|
|
|
|
} // namespace openspace
|
|
|
|
#endif // !__OPENSPACE_MODULE_SERVER___ERRORLOGTOPIC____H__
|