summaryrefslogtreecommitdiffstats
path: root/raul/Path.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-15 02:48:48 +0000
committerDavid Robillard <d@drobilla.net>2008-08-15 02:48:48 +0000
commitd372433e02ec32fd62e3f7e1fae00727dd38dd1a (patch)
tree529923d15c51f669056546312b457ebe592976c9 /raul/Path.hpp
parent87ee1fdbffa3c2575015cee307a9cb671b98ce71 (diff)
downloadraul-d372433e02ec32fd62e3f7e1fae00727dd38dd1a.tar.gz
raul-d372433e02ec32fd62e3f7e1fae00727dd38dd1a.tar.bz2
raul-d372433e02ec32fd62e3f7e1fae00727dd38dd1a.zip
Add strong Symbol class (just a restricted string, like path) and use it for ingen object symbols.
git-svn-id: http://svn.drobilla.net/lad/raul@1387 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/Path.hpp')
-rw-r--r--raul/Path.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/raul/Path.hpp b/raul/Path.hpp
index 8cda1fa..092b337 100644
--- a/raul/Path.hpp
+++ b/raul/Path.hpp
@@ -24,6 +24,8 @@
#include <cstring>
#include <cassert>
+#include <raul/Symbol.hpp>
+
namespace Raul {
@@ -44,7 +46,7 @@ namespace Raul {
class Path : public std::basic_string<char> {
public:
- /** Contrust an uninitialzed path, because the STL is annoying. */
+ /** Construct an uninitialzed path, because the STL is annoying. */
Path() : std::basic_string<char>("/") {}
/** Construct a Path from an std::string.
@@ -88,7 +90,7 @@ public:
/** Return the name of this object (everything after the last '/').
* This is the "method name" for OSC paths.
*/
- inline std::basic_string<char> name() const {
+ inline Symbol name() const {
if ((*this) == "/")
return "";
else