A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/file__auto__loader_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/core/file_auto_loader.cpp Source File

39 #include <wx/msgdlg.h> 40 #include <wx/filename.h> 47

: m_Descr(

"Autodetect format"

,

""

)

114

wxString filters, separator;

117

separator =

wxT

(

"|"

);

131

fmt =

file

.GuessFormat();

136

vector<CIRef<IFileFormatLoaderManager> > compatible_managers;

139

vector< CIRef<IFileFormatLoaderManager> > managers;

140

vector<CIRef<IFileFormatLoaderManager> > compatible_managers;

146  for

(

size_t i

= 0;

i

< managers.size(); ++

i

) {

152  if

(compatible_managers.size())

156  for

(

size_t i

= 0;

i

< compatible_managers.size(); ++

i

) {

160

wxFileName fname(fn);

162

fn = fname.GetFullPath();

185

wxMessageBox(

wxT

(

"The file type cannot be automatically determined.\n"

)

186  wxT

(

"Please select type from the \"File Format\" list."

),

wxT

(

"Choose a file type"

),

187

wxICON_ERROR | wxOK);

200

vector<wxString> fnames;

230  static string

sid(

"autodetect_format_load_manager"

);

237  static string

slabel(

"Autodetect Format Load Manager"

);

virtual bool IsCompletedState()

Manager goes into "Complete" state when "Finish" button is pressed and all input data is gatherred an...

virtual bool IsFinalState()

True if Tool Manager has reached its final state, i.e.

virtual IExecuteUnit * GetExecuteUnit()

virtual void SetServiceLocator(IServiceLocator *srv_locator)

Sets / unsets Service Locator.

virtual bool CanDo(EAction action)

Indicates whether given transition is possible in the current state.

virtual string GetExtensionIdentifier() const

returns the unique human-readable identifier for the extension the id should use lowercase letters se...

virtual wxPanel * GetCurrentPanel()

Return the panel corresponding to the current state of Tool Manager.

virtual bool IsInitialState()

return true if the current state of the loader UI is the first valid state (first step in a wizard-li...

virtual void CleanUI()

CleanUI() is called after the host finished using the manager.

virtual IAppTask * GetTask()

Once parameters are gathered and validated this function is called to produce the final Task object t...

CFileAutoLoader()

CFileAutoLoader.

virtual bool RecognizeFormat(const wxString &filename)

return true if the given file format is supported by this manager

virtual const IUIObject & GetDescriptor() const

Returns the object describing this tool (UI meta data).

virtual string GetExtensionLabel() const

returns a displayable label for this extension ( please capitalize the key words - "My Extension" )

virtual bool ValidateFilenames(const vector< wxString > &filenames)

checks given filenames and returns true if the manager can handle them, otherwise - shows an error me...

CFormatGuess::EFormat SetFormatManager(const vector< wxString > &filenames)

virtual bool DoTransition(EAction action)

Performs transition if possible and returns true, otherwise the function shall warn the user about th...

virtual void GetFilenames(vector< wxString > &filenames) const

get actual filenames that will be opened

virtual void InitUI()

Initializes the Manager before using it in UI.

CIRef< IFileFormatLoaderManager > m_FormatManager

virtual void SetFilenames(const vector< wxString > &filenames)

initilize the manager with the given filenames

virtual void SetParentWindow(wxWindow *parent)

virtual wxString GetFormatWildcard()

return file wildcard for the format (example - "*.txt;*.tab" )

static wxString GetDialogFilter(EFileType fileType)

EFormat

The formats are checked in the same order as declared here.

@ eUnknown

unknown format

@ eBam

Binary alignment/map file.

IFileFormatLoaderManager.

virtual bool RecognizeFormat(const wxString &filename)=0

return true if the given file format is supported by this manager

IServiceLocator - an abstract mechanism for locating services.

IUIObject - object that provides basic properties often required in a UI object.

void GetExtensionAsInterface(const string &ext_point_id, vector< CIRef< I > > &interfaces)

GetExtensionAsInterface() is a helper function that extracts all extensions implementing the specifie...

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4