dbus-cxx logo

path.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2009,2010 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 #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

Generated on Thu Mar 18 09:30:55 2010 for dbus-cxx by doxygen 1.6.1