summaryrefslogtreecommitdiff
path: root/flower/include/file-name.hh
blob: e6247986f96609f5d0dd398c3d2fae46df9ad5eb (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
  file-name.hh -- declare File_name

  source file of the Flower Library

  (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/

#ifndef FILE_NAME_HH
#define FILE_NAME_HH

#include "array.hh"
#include "std-string.hh"

#if 0// STD_STRING
#include "string.hh"
#endif

class File_name
{
public:
  Std_string root_;
  Std_string dir_;
  Std_string base_;
  Std_string ext_;

  File_name (Std_string);
#if 0// STD_STRING
  File_name (String);
#endif

  bool is_absolute () const;
  Std_string to_string () const;
};

#endif /* FILE_NAME */