X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fevoral%2Fevoral%2FParameter.hpp;h=2164475cf9635f34e73567b08031f4fb94a5815a;hb=2a7ed69c28c5c4606ff13b3605b9bc9c3eba607d;hp=edd8c8d74f5df06b94140b133bf0c125c6909599;hpb=bffe0c4f9825b9609acba67dd574d895aa619b66;p=ardour.git diff --git a/libs/evoral/evoral/Parameter.hpp b/libs/evoral/evoral/Parameter.hpp index edd8c8d74f..2164475cf9 100644 --- a/libs/evoral/evoral/Parameter.hpp +++ b/libs/evoral/evoral/Parameter.hpp @@ -1,6 +1,5 @@ - /* This file is part of Evoral. - * Copyright (C) 2008 Dave Robillard + * Copyright (C) 2008 David Robillard * Copyright (C) 2000-2008 Paul Davis * * Evoral is free software; you can redistribute it and/or modify it under the @@ -25,6 +24,8 @@ #include #include +#include "evoral/visibility.h" + namespace Evoral { @@ -37,7 +38,7 @@ namespace Evoral { * This class defines a < operator which is a strict weak ordering, so * Parameter may be stored in a std::set, used as a std::map key, etc. */ -class Parameter +class LIBEVORAL_API Parameter { public: Parameter(uint32_t type, uint8_t channel=0, uint32_t id=0) @@ -95,7 +96,7 @@ public: inline void set_range(double min, double max, double normal, bool toggled) { _metadata = boost::shared_ptr(new Metadata(min, max, normal, toggled)); } - + inline Metadata& metadata() const { if (_metadata) return *_metadata.get();