Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Element
- {
- private:
- string fill; ///Wypelnienie prostokata
- int border; ///Grubosc linii
- string color; ///Kolor linii
- int size; ///Rozmiar
- int y; ///Odleglosc od rozpoczecia okna przegladarki
- public:
- ...
- friend class Kontener;
- ...
- };
- i metoda w szablonie:
- void Kontener<TYP>::zapiszObiekt(int indeks, string nazwa_pliku){
- nazwa_pliku += string(".xml");
- ofstream plik;
- plik.open(nazwa_pliku);
- if (liczba_elementow != 0){
- plik << "<svg width=\"6400\" height=\"600\" xmlns=\"http://www.w3.org/2000/svg\">" << endl << "<g>" << endl << "<title>Rezonator kwarcowy</title>" << endl;
- for (int i = 0; i < liczba_elementow; i++)
- {
- plik << " <line fill=\"none\" stroke=\"" << (*this)[i].color << ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement