path.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef DBUSPATH_H
00020 #define DBUSPATH_H
00021
00022
00023 #include <string>
00024 #include <vector>
00025
00026 namespace DBus
00027 {
00028
00032 class Path: public std::string
00033 {
00034 public:
00035
00036 typedef std::vector<std::string> Decomposed;
00037
00038 Path();
00039
00040 Path( const std::string& s, size_type pos = 0, size_type n = npos );
00041
00042 Path( const char* );
00043
00044 Path( const char* s, size_type n );
00045
00046 Path( size_type n, char c );
00047
00048 template<class InputIterator>
00049 Path( InputIterator first, InputIterator last ): std::string( first, last ) { }
00050
00051 ~Path();
00052
00053 operator bool() const;
00054
00055 bool is_valid() const;
00056
00067 Decomposed decomposed() const;
00068
00078 bool append_element(const std::string& element);
00079
00080 };
00081
00082 }
00083
00084 #endif