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 #include <string>
00020 #include <vector>
00021
00022 #ifndef DBUSCXX_PATH_H
00023 #define DBUSCXX_PATH_H
00024
00025 namespace DBus
00026 {
00027
00031 class Path: public std::string
00032 {
00033 public:
00034
00035 typedef std::vector<std::string> Decomposed;
00036
00037 Path();
00038
00039 Path( const std::string& s, size_type pos = 0, size_type n = npos );
00040
00041 Path( const char* );
00042
00043 Path( const char* s, size_type n );
00044
00045 Path( size_type n, char c );
00046
00047 template<class InputIterator>
00048 Path( InputIterator first, InputIterator last ): std::string( first, last ) { }
00049
00050 ~Path();
00051
00052 operator bool() const;
00053
00054 bool is_valid() const;
00055
00066 Decomposed decomposed() const;
00067
00077 bool append_element(const std::string& element);
00078
00079 };
00080
00081 }
00082
00083 #endif