/[svn]/linuxsampler/trunk/src/common/Path.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/Path.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1481 by senoner, Wed Nov 14 23:42:15 2007 UTC revision 1782 by iliev, Tue Sep 30 02:16:41 2008 UTC
# Line 111  public: Line 111  public:
111       */       */
112      static Path fromWindows(std::string path);      static Path fromWindows(std::string path);
113    
114        /**
115         * Returns the name of the file or directory represented by
116         * this path in abstract/raw form. This is the last name in
117         * the path's name sequence.
118         */
119        std::string getName();
120    
121        /**
122         * Returns the name of the file or directory
123         * represented by the specified path in abstract/raw form.
124         * This is the last name in the path's name sequence.
125         */
126        static std::string getName(std::string path);
127    
128        /**
129         * Returns the last name in the path's name sequence
130         * of this path with the file extension stripped off.
131         */
132        std::string getBaseName();
133    
134        /**
135         * Returns the last name in the path's name sequence
136         * of the specified path with the file extension stripped off.
137         */
138        static std::string getBaseName(std::string path);
139    
140  private:  private:
141      std::vector<std::string> elements; ///< stores the path names raw = unencoded, each element is one node of the path      std::vector<std::string> elements; ///< stores the path names raw = unencoded, each element is one node of the path
142      char                     drive;      char                     drive;

Legend:
Removed from v.1481  
changed lines
  Added in v.1782

  ViewVC Help
Powered by ViewVC