14 #include <gdcore/gdCore.h>
17 : m_sAttribute(attribute), m_value(value)
39 : m_vOptions(vOptions)
49 for (
int iV = 0; iV <
m_vOptions.size(); ++iV) {
50 if (
m_vOptions[iV].attribute() != attribute )
continue;
78 wApp->log(
"notice") << message <<
" WsOptions::outOptions() Attribute : " <<
m_vOptions[iV].attribute() <<
", Value : " << Wt::asString(
m_vOptions[iV].value());
82 : Wt::WObject(Wt::WApplication::instance()), m_bLoaded(false), m_bHideImages(false)
133 if ( extension.size() > 0 ) {
152 std::string str(path);
153 boost::algorithm::replace_first(str,
prefix(),
"");
159 std::string str(path);
virtual bool processPrefix(const std::string &path)
proccess the prefix, return true if processed
const std::string & diffPath() const
WsOption(const std::string &attribute, const boost::any value)
void setValue(const boost::any &value)
const std::string & sysPath() const
std::string pathWithPrefix(const std::string &path)
return the relative path with the prefix : example pathWithPrefix("/Test") return "/SiteMap/Test" ...
std::vector< std::string > m_extensions
const std::string & attribute() const
std::string pathWithoutPrefix(const std::string &path)
return the relative path without the prefix : example pathWithoutPrefix("/SiteMap/Test") return "/Tes...
const std::vector< WsOption > & options() const
Get all options.
void setDiffPath(const std::string &diffPath)
Set/Get the difference between the web server (example Apache /var/www) root path and the wittishare ...
void setFileName(const std::string &fileName)
Set/Get the file name that trigger the module : exemple "Staff List".
void setHideImages(const bool bHide)
Set/Get the flag to specified if the images is hided.
const std::string & soName() const
virtual std::string checkPath(const std::string ¤tPath)
Return the currentPath, or another path when some action is required for the currentPath example /New...
const std::string & moduleName() const
void setOption(const std::string &attribute, boost::any value)
Set an options if previously set, update the value.
void setPrefix(const std::string &prefix)
Set/Get prefix for a virtual path, like "/SiteMap".
void setModuleName(const std::string &name)
Set/Get the module name.
const std::string & prefix() const
const boost::any & option(const std::string &attribute) const
Get an options value.
std::vector< WsOption > m_vOptions
void outOptions(const std::string message)
Output all options.
const std::string & fileName() const
void setSoName(const std::string &soName)
Set/Get the module so name or path ex. libgd.so or /usr/lib/libgd.so.
void setExtensions(const std::string &extensions)
Set/Get the file extension managed by the module : exemple .ods|.odp.
const std::string & extension(const std::string &extension="") const
void setOptions(const std::vector< WsOption > &vOptions)
Set all options.
void setSysPath(const std::string &sysPath)
Set/Get the system path (example the selected file /var/www/mysite/about/me.fhtml).
const boost::any & value() const