summaryrefslogtreecommitdiff
path: root/src/path.h
blob: 52b3bc38524e244e52a618c6d02dc08e01f35078 (plain)
    1 /**
    2  * Copyright (C) 2016 Aaron Ball <nullspoon@oper.io>
    3  *
    4  * Noteless is free software: you can redistribute it and/or modify
    5  * it under the terms of the GNU General Public License as published by
    6  * the Free Software Foundation, either version 3 of the License, or
    7  * (at your option) any later version.
    8  *
    9  * Noteless is distributed in the hope that it will be useful,
   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12  * GNU General Public License for more details.
   13  *
   14  * You should have received a copy of the GNU General Public License
   15  * along with noteless.  If not, see <http://www.gnu.org/licenses/>.
   16  */
   17 using namespace std;
   18 
   19 #include <string>
   20 #include <vector>
   21 #include <iostream>
   22 #include <fstream>
   23 #include <sys/stat.h>
   24 #ifndef LIB_PATH_H
   25 #define LIB_PATH_H
   26 
   27 class path {
   28   public:
   29   string value;
   30   string filename;
   31   char type;
   32   char delim;
   33   vector<string> dirs;
   34 
   35   path();
   36   path( string );
   37   bool exists();
   38   int create();
   39   int is_dir();
   40   int append(string);
   41   string basename();
   42   string out();
   43 };
   44 
   45 #endif

Generated by cgit