ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/CAD4FE/src/CAD4FE_HtmlText.h
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months ago) by francois
Content type: text/plain
File size: 2216 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

# User Rev Content
1 francois 1158 //####//------------------------------------------------------------
2     //####//------------------------------------------------------------
3     //####// MAGiC
4     //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5     //####// Departement de Genie Mecanique - UQTR
6     //####//------------------------------------------------------------
7     //####// MAGIC est un projet de recherche de l equipe ERICCA
8     //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9     //####// http://www.uqtr.ca/ericca
10     //####// http://www.uqtr.ca/
11     //####//------------------------------------------------------------
12     //####//------------------------------------------------------------
13     //####//
14     //####// CAD4FE_HtmlText.h
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:58:56 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 foucault 27 #ifndef CAD4FE_HtmlTextH
23     #define CAD4FE_HtmlTextH
24    
25     #include <string>
26     #include <vector>
27    
28     #include "CAD4FE_Common_platform.h"
29    
30     namespace CAD4FE {
31    
32 francois 1158 class HtmlText {
33 foucault 27 public:
34     virtual std::string GetHtml(){return "";}
35     operator std::string () {return GetHtml();}
36     };
37    
38 francois 1158 class HtmlText_Table : public HtmlText {
39 foucault 27 public:
40     HtmlText_Table(std::vector <std::string> & __head );
41     HtmlText_Table (std::vector <std::string> & __head, std::vector < std::vector <std::string> > & __rows);
42     void AddRow(std::vector<std::string> & __row );
43     void Close();
44     virtual std::string GetHtml();
45     protected:
46     std::string _nbCols;
47     std::vector <std::string> _head;
48     std::vector< std::vector < std::string> > _rows;
49     };
50    
51 francois 1158 class HtmlText_Page : public HtmlText {
52 foucault 27 public:
53     HtmlText_Page();
54     void operator << (const std::ostringstream & __os);
55     void Add(std::string __string);
56     void Close();
57     virtual std::string GetHtml();
58     void Show(std::string __filename);
59     void WriteFile(std::string __filename);
60     void Clear();
61     protected:
62     std::string _html;
63     };
64    
65     }
66    
67    
68     #endif