libstorage-ng
Ext3.h
1 /*
2  * Copyright (c) [2014-2015] Novell, Inc.
3  * Copyright (c) 2017 SUSE LLC
4  *
5  * All Rights Reserved.
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of version 2 of the GNU General Public License as published
9  * by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, contact Novell, Inc.
18  *
19  * To contact Novell about this file by physical or electronic mail, you may
20  * find current contact information at www.novell.com.
21  */
22 
23 
24 #ifndef STORAGE_EXT3_H
25 #define STORAGE_EXT3_H
26 
27 
28 #include "storage/Filesystems/Ext.h"
29 
30 
31 namespace storage
32 {
33 
34  class Ext3 : public Ext
35  {
36  public:
37 
38  static Ext3* create(Devicegraph* devicegraph);
39  static Ext3* load(Devicegraph* devicegraph, const xmlNode* node);
40 
41  public:
42 
43  class Impl;
44 
45  Impl& get_impl();
46  const Impl& get_impl() const;
47 
48  virtual Ext3* clone() const override;
49 
50  protected:
51 
52  Ext3(Impl* impl);
53 
54  };
55 
56 
57  bool is_ext3(const Device* device);
58 
65  Ext3* to_ext3(Device* device);
66 
70  const Ext3* to_ext3(const Device* device);
71 
72 }
73 
74 #endif
Definition: Ext3.h:34
The master container of the libstorage.
Definition: Devicegraph.h:153
An abstract base class of storage devices, and a vertex in the Devicegraph.
Definition: Device.h:75
Ext3 * to_ext3(Device *device)
Converts pointer to Device to pointer to Ext3.
Abstract base class for Ext2, Ext3 and Ext4.
Definition: Ext.h:37
The storage namespace.
Definition: Actiongraph.h:37