dbus-cxx logo

path.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2009 by Rick L. Vinyard, Jr.                            *
00003  *   rvinyard@cs.nmsu.edu                                                  *
00004  *                                                                         *
00005  *   This file is part of the dbus-cxx library.                            *
00006  *                                                                         *
00007  *   The dbus-cxx library is free software; you can redistribute it and/or *
00008  *   modify it under the terms of the GNU General Public License           *
00009  *   version 3 as published by the Free Software Foundation.               *
00010  *                                                                         *
00011  *   The dbus-cxx library is distributed in the hope that it will be       *
00012  *   useful, but WITHOUT ANY WARRANTY; without even the implied warranty   *
00013  *   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   *
00014  *   General Public License for more details.                              *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU General Public License     *
00017  *   along with this software. If not see <http://www.gnu.org/licenses/>.  *
00018  ***************************************************************************/
00019 #ifndef DBUSPATH_H
00020 #define DBUSPATH_H
00021 
00022 // #include <ostream>
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

Generated on Fri Jun 26 15:50:38 2009 for dbus-cxx by doxygen 1.5.8