minor reformat

This commit is contained in:
Dennis Luxen 2015-02-09 09:21:44 +01:00
parent 2a68f9f532
commit 85d8e0ac2c

View File

@ -52,7 +52,6 @@ struct DescriptorTable : public std::unordered_map<std::string, unsigned>
} }
}; };
struct DescriptorConfig struct DescriptorConfig
{ {
DescriptorConfig() : instructions(true), geometry(true), encode_geometry(true), zoom_level(18) DescriptorConfig() : instructions(true), geometry(true), encode_geometry(true), zoom_level(18)
@ -60,10 +59,9 @@ struct DescriptorConfig
} }
template <class OtherT> template <class OtherT>
DescriptorConfig(const OtherT &other) : instructions(other.print_instructions), DescriptorConfig(const OtherT &other)
geometry(other.geometry), : instructions(other.print_instructions), geometry(other.geometry),
encode_geometry(other.compression), encode_geometry(other.compression), zoom_level(other.zoom_level)
zoom_level(other.zoom_level)
{ {
BOOST_ASSERT(zoom_level >= 0); BOOST_ASSERT(zoom_level >= 0);
} }
@ -80,8 +78,8 @@ template <class DataFacadeT> class BaseDescriptor
BaseDescriptor() {} BaseDescriptor() {}
// Maybe someone can explain the pure virtual destructor thing to me (dennis) // Maybe someone can explain the pure virtual destructor thing to me (dennis)
virtual ~BaseDescriptor() {} virtual ~BaseDescriptor() {}
virtual void Run(const InternalRouteResult &, JSON::Object &) = 0; virtual void Run(const InternalRouteResult &raw_route, JSON::Object &json_result) = 0;
virtual void SetConfig(const DescriptorConfig &) = 0; virtual void SetConfig(const DescriptorConfig &c) = 0;
}; };
#endif // DESCRIPTOR_BASE_HPP #endif // DESCRIPTOR_BASE_HPP