Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
Convert.h
1/*
2Copyright (C) 2016-2019,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#ifndef AEONGAMES_CONVERT_H
17#define AEONGAMES_CONVERT_H
18#include <string>
19#include <stdexcept>
20#include "Tool.h"
21
22namespace AeonGames
23{
25 class Convert : public Tool
26 {
27 public:
38 int operator() ( int argc, char** argv ) override;
39 private:
40 void ProcessArgs ( int argc, char** argv );
41 enum class FileType
42 {
43 UNKNOWN = 0,
44 AEONPLNB,
45 AEONPLNT,
46 AEONMTLB,
47 AEONMTLT,
48 AEONMSHB,
49 AEONMSHT,
50 AEONSKLB,
51 AEONSKLT,
52 };
53 FileType GetFileType ( const char* aMagic ) const;
54 std::string mInputFile;
55 std::string mOutputFile;
56 };
57}
58#endif
int operator()(int argc, char **argv) override
Execute the convert tool.
Definition Convert.cpp:477
Convert()
Default constructor.
~Convert()
Destructor.
Abstract base class for command-line tools.
Definition Tool.h:23
<- This is here just for the literals
Definition AABB.hpp:31