Advanced Strategic Command
Public Member Functions | List of all members
FileName Class Reference

This class handles filenames. All operations that work on filenames will be added here. More...

#include <basestrm.h>

Inheritance diagram for FileName:
Inheritance graph
[legend]

Public Member Functions

ASCString suffix ()
 return the suffix of the file or an empty string if the file doesn't have a suffix. More...
 
FileNameoperator= (const ASCString &s)
 
 FileName ()
 
 FileName (const ASCString &s)
 
- Public Member Functions inherited from ASCString
 ASCString ()
 
 ASCString (const charT *pS)
 
 ASCString (const charT *pS, size_type n)
 
 ASCString (size_type n, charT c)
 
 ASCString (const_iterator first, const_iterator last)
 
 ASCString (const ASCCharTString &s)
 
 ASCString (const ASCCharTString &s, size_type pos, size_type n)
 
 ASCString (const ASCAdaptatorString &s)
 
 ASCString (const ASCAdaptatorString &s, size_type pos, size_type n)
 
ASCStringoperator= (const ASCAdaptatorString &s)
 
ASCStringoperator= (const ASCCharTString &s)
 
ASCStringoperator= (const charT *pS)
 
int compare_ci (const ASCCharTString &s) const
 
int compare_ci (size_type p0, size_type n0, const ASCCharTString &s)
 
int compare_ci (size_type p0, size_type n0, const ASCCharTString &s, size_type pos, size_type n)
 
int compare_ci (const charT *pS) const
 
int compare_ci (size_type p0, size_type n0, const charT *pS, size_type pos) const
 
ASCStringreplaceAll (const ASCString &old, const ASCString &newString)
 replaces all occurances of old with newString More...
 
ASCStringreplaceAll_ci (const ASCString &old, const ASCString &newString)
 replaces all occurances of old with newString ; case insensitive More...
 
ASCStringtoLower ()
 
ASCStringtoUpper ()
 
ASCStringformat (const charT *pFormat,...)
 
ASCStringvaformat (const charT *pFormat, va_list ap)
 
void printf ()
 
bool endswith (const ASCString &s) const
 Checks if the last characters of string are equal to s. More...
 

Additional Inherited Members

- Public Types inherited from ASCString
typedef ASCStringHelpers::charT charT
 
typedef ASCStringHelpers::NoncharT NoncharT
 
- Static Public Member Functions inherited from ASCString
static ASCString toString (int i)
 converts the parameter to a String More...
 
static ASCString toString (unsigned int i)
 
static ASCString toString (double d)
 converts the parameter to a String with base radix More...
 

Detailed Description

This class handles filenames. All operations that work on filenames will be added here.

Definition at line 667 of file basestrm.h.

Constructor & Destructor Documentation

FileName::FileName ( )
inline

Definition at line 673 of file basestrm.h.

FileName::FileName ( const ASCString s)
inline

Definition at line 674 of file basestrm.h.

Member Function Documentation

FileName& FileName::operator= ( const ASCString s)
inline

Definition at line 672 of file basestrm.h.

References ASCString::operator=().

ASCString FileName::suffix ( )

return the suffix of the file or an empty string if the file doesn't have a suffix.

The suffix is the part of the filename after its last period.

Definition at line 2631 of file basestrm.cpp.

References pathdelimitterstring.

Referenced by loadASCFieldImage().


The documentation for this class was generated from the following files: