Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Lnk Class Reference

Determine target and validity of Win9x link files (*.lnk). More...

#include <read_lnk.h>

Collaboration diagram for Lnk:

Collaboration graph
[legend]
List of all members.

Public Methods

 Lnk (const std::string &filename_)
 Examine a .lnk file. More...

virtual ~Lnk ()
bool points_to_file_or_directory () const
 return if link points to a target (may be non-existing). More...

bool is_valid () const
 return if link points to an existing target. More...

bool points_to_directory () const
 return true if link points to a directory (may be a non-existing directory). More...

bool points_to_file () const
 return true if link points to a file (may be a non-existing file). More...

const std::string & get_target () const
 return the full pathname of the target. More...


Private Attributes

std::string filename
std::string target
bool points_to_file_or_directory_
bool target_is_directory

Detailed Description

Determine target and validity of Win9x link files (*.lnk).

Definition at line 32 of file read_lnk.h.


Constructor & Destructor Documentation

Lnk const std::string &    filename_
 

Examine a .lnk file.

Parameters:
filename_  the name of the .lmk file

Definition at line 89 of file read_lnk.cpp.

virtual ~Lnk   [inline, virtual]
 

Definition at line 45 of file read_lnk.h.


Member Function Documentation

bool points_to_file_or_directory   const [inline]
 

return if link points to a target (may be non-existing).

Definition at line 48 of file read_lnk.h.

Referenced by rs::file::isLink(), Lnk::Lnk(), Lnk::points_to_directory(), and Lnk::points_to_file().

bool is_valid   const
 

return if link points to an existing target.

Definition at line 271 of file read_lnk.cpp.

bool points_to_directory   const [inline]
 

return true if link points to a directory (may be a non-existing directory).

Definition at line 54 of file read_lnk.h.

Referenced by Lnk::is_valid().

bool points_to_file   const [inline]
 

return true if link points to a file (may be a non-existing file).

Definition at line 57 of file read_lnk.h.

Referenced by Lnk::is_valid().

const std::string& get_target   const [inline]
 

return the full pathname of the target.

Definition at line 60 of file read_lnk.h.

Referenced by Lnk::is_valid(), and rs::file::isLink().


Member Data Documentation

std::string filename [private]
 

Definition at line 34 of file read_lnk.h.

Referenced by Lnk::Lnk().

std::string target [private]
 

Definition at line 35 of file read_lnk.h.

Referenced by Lnk::get_target(), and Lnk::Lnk().

bool points_to_file_or_directory_ [private]
 

Definition at line 37 of file read_lnk.h.

Referenced by Lnk::Lnk(), and Lnk::points_to_file_or_directory().

bool target_is_directory [private]
 

Definition at line 38 of file read_lnk.h.

Referenced by Lnk::Lnk(), Lnk::points_to_directory(), and Lnk::points_to_file().


The documentation for this class was generated from the following files:
Contact me in case of errors or questions.
This documentation is powered by Doxygen.
(C) 2000-2002 Doxygen