/* Copyright (C) 1998, 1999, 2001, 2002 Jérôme Lecomte This file is part of XLW, a free-software/open-source C++ wrapper of the Excel C API - http://xlw.sourceforge.net/ XLW is free software: you can redistribute it and/or modify it under the terms of the XLW license. You should have received a copy of the license along with this program; if not, please email xlw-users@lists.sf.net This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details. */ #ifndef INC_XlfArgDesc_H #define INC_XlfArgDesc_H /*! \file XlfArgDesc.h \brief Declares class XlfArgDesc. */ // $Id: XlfArgDesc.h 152 2003-04-20 04:42:47Z fortier $ #include #include #if defined(_MSC_VER) #pragma once #endif #if defined(DEBUG_HEADERS) #pragma DEBUG_HEADERS #endif //! Encapsulates the argument definition. /*! Stores the name, the type (defaults to R), and a comment line to be displayed in the function wizard. */ class EXCEL32_API XlfArgDesc { public: //! Default ctor. XlfArgDesc(); //! Detailed ctor. XlfArgDesc(const std::string& name, const std::string& comment, char type='R'); //! Dtor ~XlfArgDesc(); //! Set the name of the argument void SetName(const std::string& name); //! Get the name const std::string& GetName() const; //! Set the help string associated void SetComment(const std::string& comment); //! Get the comment string const std::string& GetComment() const; //! Get the argument type char GetType() const; private: //! Name of the argument as it appears in Excel, std::string name_; //! Comment line associated to the comment (appears in function wizzard). std::string comment_; //! Type of the argument (see Excel documentation). char type_; //! Controls the name is valid to be used properly by the function wizzard. void CheckNameLength(); }; #endif