00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _CJNP_REDIM_H_
00021 #define _CJNP_REDIM_H_ 1
00022
00023 #include <string>
00024 #include "CjNetworkProcess.hh"
00025 #include "CjNetworkDimensioner.hh"
00026
00027 namespace jmitie {
00028 namespace corelib {
00029 class CjNP_redim : public CjNetworkProcess {
00030
00031 private:
00032 ctor_va_t::CjDimFactory_t::Visitor_shared_ptr m_link_dimensioner;
00033
00034 public:
00035 std::string getName() const { return getName_static(); }
00036 static std::string getName_static() { return "redim"; }
00037 std::string getProperty(const std::string & prop) const { return getProperty_static(prop); }
00038 static std::string getProperty_static(const std::string & opt) {
00039 if(opt=="desc") return "Redimensions all links in the network.";
00040 if(opt=="usage") return getProperty_static("desc") + "\n" \
00041 "link_dimensioner_name\tThe name of the link dimensioner to use on the new link.\n";
00042 throw std::invalid_argument("CjNP_redim::getProperty_static(" + opt + "): Unknown property requested.");
00043 }
00044
00045 CjNP_redim(const std::string & args, const ctor_va_t & var_arg );
00046
00047 virtual void performAction( const action_va_t & opts );
00048
00049 ~CjNP_redim() { }
00050
00051 };
00052 }
00053 }
00054
00055 #endif // _CJNP_REDIM_H_