Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package


* This file is part of lib_finder plugin for Code::Blocks Studio
* Copyright (C) 2006-2007  Bartlomiej Swiecki
* wxSmith is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* wxSmith is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with wxSmith; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
* $Revision: 4504 $
* $Id: wxsmithpluginregistrants.cpp 4504 2007-10-02 21:52:30Z byo $
* $HeadURL: svn+ssh://byo@svn.berlios.de/svnroot/repos/codeblocks/trunk/src/plugins/contrib/wxSmith/plugin/wxsmithpluginregistrants.cpp $


#include <wx/dynarray.h>

#include "libraryconfig.h"
#include "pkgconfigmanager.h"

class wxArrayString;
class wxString;
class TiXmlElement;

/** \brief Class managing library configurations used to detect libraries
 * Note that confiugrations managed here are not yet fully functional library
 * settings - they can only be used to automatically detect existing libraries.
 * After successfull detection, LibraryResult is produced which does hold
 * useful configuration of library
00043 class LibraryConfigManager

        /** \brief Ctor */
        LibraryConfigManager(TypedResults& Results);

        /** \brief Dctor */

        /** \brief Function loading xml configuration files from specified directory */
        void LoadXmlConfig(const wxString& Dir);

        /** \brief Function returning number of loaded library configurations */
00057         inline int GetLibraryCount() const { return (int)Libraries.Count(); }

        /** \brief Function returning configuration for one library */
        const LibraryConfig* GetLibrary(int Index);

        /** \brief Function clearing current library set */
        void Clear();


        /** \brief Loading configuration from given filename */
        void LoadXmlFile(const wxString& Name);

        /** \brief Loading configuration from given Xml node
         * \param Elem xml node
         * \param Config storage for configuration (data read from node will be appended to current configuration)
         * \param Filters if true, load settings for filters
         * \param Settings if true, load library settings
        void LoadXml(TiXmlElement* Elem,LibraryConfig* Config,bool Filters=true,bool Settings=true);

        /** \brief Test if configuration is valid */
        bool CheckConfig(const LibraryConfig* Cfg) const;

        /** \brief Testing if there's library configuration in pkg-config database */
        bool IsPkgConfigEntry(const wxString& Name);

        /** \brief Adding configuration, if it's not valid it will be deleted */
        void AddConfig(LibraryConfig* Cfg);


        LCArray Libraries;
        TypedResults& m_CurrentResults;


Generated by  Doxygen 1.6.0   Back to index