Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsTemplate.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-Today Guy Deleeuw
3  *
4  * See the LICENSE file for terms of use.
5 */
6 
7 #ifndef _WsTemplate_H_
8 #define _WsTemplate_H_
9 
10 #include <Wt/WTemplate>
11 
12 #include <gdwtcore/gdToolbar.h>
13 
14 #include <User/WsUser.h>
15 
16 #include "Main/WsApplication.h"
17 
18 class WsTemplate : public Wt::WTemplate {
19 public :
20  WsTemplate(const std::string& templateFile, const std::string& initialPath = std::string(), Wt::WContainerWidget* parent = 0);
21  ~WsTemplate();
22  std::string matchTemplate(const std::string& templateFile);
23  void resolveString (const std::string& varName, const std::vector< Wt::WString >& args, std::ostream& result);
24  Wt::WWidget* resolveWidget(const std::string& varName);
25 
26 private :
27  std::string m_sInitialPath;
28 };
29 
30 #endif // ifdef _WsTemplate_H_
WsTemplate(const std::string &templateFile, const std::string &initialPath=std::string(), Wt::WContainerWidget *parent=0)
Definition: WsTemplate.cpp:32
Wt::WWidget * resolveWidget(const std::string &varName)
Definition: WsTemplate.cpp:69
std::string m_sInitialPath
Definition: WsTemplate.h:27
void resolveString(const std::string &varName, const std::vector< Wt::WString > &args, std::ostream &result)
Definition: WsTemplate.cpp:117
std::string matchTemplate(const std::string &templateFile)
Definition: WsTemplate.cpp:51
User class.