|
Aegis
4.25.D505
|
00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 2008 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 3 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 LIBAEGIS_SUB_FUNCTOR_HOSTNAME_H 00020 #define LIBAEGIS_SUB_FUNCTOR_HOSTNAME_H 00021 00022 #include <libaegis/sub/functor.h> 00023 00028 class sub_functor_hostname: 00029 public sub_functor 00030 { 00031 public: 00035 virtual ~sub_functor_hostname(); 00036 00037 private: 00045 sub_functor_hostname(const nstring &aname); 00046 00047 public: 00055 static pointer create(const nstring &aname); 00056 00057 protected: 00058 // See base class for documentation. 00059 wstring evaluate(sub_context_ty *cp, const wstring_list &arg); 00060 00061 private: 00065 sub_functor_hostname(); 00066 00070 sub_functor_hostname(const sub_functor_hostname &); 00071 00075 sub_functor_hostname &operator=(const sub_functor_hostname &); 00076 }; 00077 00078 #endif // LIBAEGIS_SUB_FUNCTOR_HOSTNAME_H
1.7.6.1