Engauge Digitizer 2
Loading...
Searching...
No Matches
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.
 
virtual ~LoadFileInfo ()
 
bool loadsAsDigFile (const QString &urlString) const
 Returns true if specified file name can be loaded as a DIG file.
 

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
29
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}
const int INNER_RADIUS_MIN
log4cpp::Category * mainCat
Definition Logger.cpp:14
Storage of one imported image and the data attached to that image.
Definition Document.h:42
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18

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