V-Gears 0
Free Final Fantasy VII engine.
ScopedLgp.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 The V-Gears Team
3 *
4 * This file is part of V-Gears
5 *
6 * V-Gears is free software: you can redistribute it and/or modify it under
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, version 3.0 (GPLv3) of the License.
9 *
10 * V-Gears 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 */
15
16#pragma once
17
18#include <Ogre.h>
19
24
25 public:
26
32 ScopedLgp(const ScopedLgp&) = delete;
33
39 ScopedLgp& operator = (const ScopedLgp&) = delete;
40
44 ScopedLgp(Ogre::Root* root, std::string full_path, std::string type, std::string group);
45
49 ~ScopedLgp();
50
51 private:
52
56 Ogre::Root* root_;
57
61 std::string full_path_;
62
66 std::string group_;
67};
Ogre::Root * root
The Ogre system root component.
Definition: OgreBase.cpp:22
Handles a scoped LGP archive.
Definition: ScopedLgp.h:23
ScopedLgp & operator=(const ScopedLgp &)=delete
Copy constructor.
~ScopedLgp()
Destructor.
Definition: ScopedLgp.cpp:27
std::string group_
Group for the resource.
Definition: ScopedLgp.h:66
std::string full_path_
Full path to the LGP archive.
Definition: ScopedLgp.h:61
ScopedLgp(const ScopedLgp &)=delete
Constructor.
Ogre::Root * root_
The Ogre root system.
Definition: ScopedLgp.h:56