nis-util  1.0.D108
lib/space/auto_master/row/normal.h
Go to the documentation of this file.
00001 //
00002 // nis-util - NIS Administration Utilities
00003 // Copyright (C) 2012 Peter Miller
00004 //
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 2 of the License, or (at
00008 // your option) any later version.
00009 //
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License along
00016 // with this program. If not, see <http://www.gnu.org/licenses/>.
00017 //
00018 
00019 #ifndef LIB_SPACE_AUTO_MASTER_ROW_NORMAL_H
00020 #define LIB_SPACE_AUTO_MASTER_ROW_NORMAL_H
00021 
00022 #include <lib/space/auto_master/row.h>
00023 #include <lib/space/automap.h>
00024 
00029 class space_auto_master_row_normal:
00030     public space_auto_master_row
00031 {
00032 public:
00033     typedef boost::shared_ptr<space_auto_master_row_normal> pointer;
00034 
00038     virtual ~space_auto_master_row_normal();
00039 
00052     static pointer create(const mount_point &key,
00053         const rcstring &map_name, const rcstring &options);
00054 
00055 protected:
00056     // See base class for documentation.
00057     void print(const output_pointer &op) const;
00058 
00059     // See base class for documentation.
00060     void load_map(const rcstring &filename,
00061         const space_hosts_slurp::pointer &hosts);
00062 
00063     // See base class for documentation.
00064     rcstring get_filename(void) const;
00065 
00066     // See base class for documentation.
00067     bool has_associated_file(void) const;
00068 
00069 private:
00082     space_auto_master_row_normal(const mount_point &key,
00083         const rcstring &filename, const rcstring &options);
00084 
00089     rcstring maptype;
00090 
00095     rcstring mapname;
00096 
00102     space_automap::pointer map;
00103 
00108     space_auto_master_row_normal();
00109 
00117     space_auto_master_row_normal(const space_auto_master_row_normal &rhs);
00118 
00126     space_auto_master_row_normal &operator=(
00127         const space_auto_master_row_normal &rhs);
00128 };
00129 
00130 // vim: set ts=8 sw=4 et :
00131 #endif // LIB_SPACE_AUTO_MASTER_ROW_NORMAL_H