aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/print_cmd.h
blob: f4a97e21829ee80eeece0a17012cb9fbcb1e0fa8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright Epic Games, Inc. All Rights Reserved.

#pragma once

#include "../zen.h"

namespace zen {

/** Print Compact Binary
 */
class PrintCommand : public ZenCmdBase
{
public:
	static constexpr char Name[]		= "print";
	static constexpr char Description[] = "Print compact binary object";

	PrintCommand();
	~PrintCommand();

	virtual void			  Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) override;
	virtual cxxopts::Options& Options() override { return m_Options; }
	virtual ZenCmdCategory&	  CommandCategory() const override { return g_UtilitiesCategory; }

private:
	cxxopts::Options	  m_Options{Name, Description};
	std::filesystem::path m_Filename;
	bool				  m_ShowCbObjectTypeInfo = false;
};

/** Print Compact Binary Package
 */
class PrintPackageCommand : public ZenCmdBase
{
public:
	static constexpr char Name[]		= "printpackage";
	static constexpr char Description[] = "Print compact binary package";

	PrintPackageCommand();
	~PrintPackageCommand();

	virtual void			  Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) override;
	virtual cxxopts::Options& Options() override { return m_Options; }
	virtual ZenCmdCategory&	  CommandCategory() const override { return g_UtilitiesCategory; }

private:
	cxxopts::Options	  m_Options{Name, Description};
	std::filesystem::path m_Filename;
	bool				  m_ShowCbObjectTypeInfo = false;
};

}  // namespace zen