9f21140e1fc8c3d51802fa6e01d6726c6176830d
3 Copyright (C) 2011 Grame
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 Grame Research Laboratory, 9 rue du Garet, 69001 Lyon - France
25 #ifndef __OSCAddress__
26 #define __OSCAddress__
34 //--------------------------------------------------------------------------
35 /*! \brief OSC addresses utilities
41 \brief address decoding utility.
43 An address has a form similar to a unix path.
44 \param address the osc address to be processed
45 \return the first part of the address (without leading '/')
47 static std::string
addressFirst (const std::string
& address
);
49 \brief address decoding utility.
50 \param address the osc address to be processed
51 \return the last part of an address.
53 static std::string
addressLast (const std::string
& address
);
55 \brief address decoding utility.
57 An address has a form similar to a unix path.
58 \param address the osc address to be processed
59 \return the tail of an address after its first part.
61 static std::string
addressTail (const std::string
& address
);