Planeshift
ccheck.h
Go to the documentation of this file.
1 /*
2  * ccheck.h - Author: Mike Gist
3  *
4  * Copyright (C) 2008 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
24 class CCheck
25 {
26 public:
27  CCheck(iObjectRegistry* object_reg);
28  ~CCheck();
29 
30  void Run();
31 
32 private:
33  void PrintHelp();
34  void ParseFile(const char* filePath, const char* fileName, bool processing);
35  void PrintOutput(const char* string, ...);
36 
37  iObjectRegistry* object_reg;
38  csRef<iVFS> vfs;
39  csRef<iDocumentSystem> docsys;
40  csRef<iStringSet> strings;
41 
42  csTinyDocumentSystem tinydoc;
43  csString outpath;
44  bool strip;
45 
46  csArray<csString> shaders;
47  csArray<csString> textures;
48  csArray<csString> materials;
49  csArray<csString> meshfacts;
50 
51  csHash<csString, csString> ctextures;
52  csHash<csString, csString> cmeshfacts;
53  csRef<iFile> log;
54 
55  csRef<iDocumentNode> texmat;
56 
57  uint duplicateNum;
58 };
CCheck(iObjectRegistry *object_reg)
void Run()
This application checks for duplicate meshfact and texture inclusions in art files.
Definition: ccheck.h:24