00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _CJNP_DISTANCESDUMP_H_
00021 #define _CJNP_DISTANCESDUMP_H_ 1
00022
00023 #include <stdexcept>
00024 #include "CjNP_LoggableBase.hh"
00025
00026 namespace jmitie {
00027 namespace corelib {
00028 class CjNP_distancesDump : public CjNP_LoggableBase {
00029 public:
00030 std::string getName() const { return getName_static(); }
00031 static std::string getName_static() { return "distancesDump"; }
00032 std::string getProperty(const std::string & prop) const { return getProperty_static(prop); }
00033 static std::string getProperty_static(const std::string & opt) {
00034 if(opt=="desc") return "Prints a matrix of distances between all pairs in the topology.";
00035 if(opt=="usage") return getProperty_static("desc") + "\nAvailable options:\n" + CjNP_LoggableBase::getProperty_static(opt);
00036 throw std::invalid_argument("CjNP_distancesDump::getProperty_static(" + opt + "): Unknown property requested.");
00037 }
00038
00039 CjNP_distancesDump(const std::string & args, const ctor_va_t & var_arg );
00040 virtual void performAction( const action_va_t & opts );
00041
00042 ~CjNP_distancesDump();
00043
00044 };
00045 }
00046 }
00047
00048 #endif // _CJNP_DISTANCESDUMP_H_