Engauge Digitizer  2
Public Member Functions | List of all members
LoadFileInfo Class Reference

Returns information about files. More...

#include <LoadFileInfo.h>

Collaboration diagram for LoadFileInfo:
Collaboration graph

Public Member Functions

 LoadFileInfo ()
 Single constructor. More...
 
virtual ~LoadFileInfo ()
 
bool loadsAsDigFile (const QString &urlString) const
 Returns true if specified file name can be loaded as a DIG file. More...
 

Detailed Description

Returns information about files.

Definition at line 13 of file LoadFileInfo.h.

Constructor & Destructor Documentation

◆ LoadFileInfo()

LoadFileInfo::LoadFileInfo ( )

Single constructor.

Definition at line 12 of file LoadFileInfo.cpp.

13 {
14 }

◆ ~LoadFileInfo()

LoadFileInfo::~LoadFileInfo ( )
virtual

Definition at line 16 of file LoadFileInfo.cpp.

17 {
18 }

Member Function Documentation

◆ loadsAsDigFile()

bool LoadFileInfo::loadsAsDigFile ( const QString &  urlString) const

Returns true if specified file name can be loaded as a DIG file.

Definition at line 20 of file LoadFileInfo.cpp.

21 {
22  LOG4CPP_INFO_S ((*mainCat)) << "LoadFileInfo::loadsAsDigFile";
23 
24  bool success = false;
25 
26  if (urlString.length() > 0) {
27 
28  QString fileName = urlString;
29 
30  QUrl url (urlString);
31  if (url.isLocalFile ()) {
32  fileName = url.toLocalFile();
33  }
34 
35  Document document (fileName);
36 
37  success = document.successfulRead();
38  }
39 
40  return success;
41 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
Storage of one imported image and the data attached to that image.
Definition: Document.h:41
log4cpp::Category * mainCat
Definition: Logger.cpp:14

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