См. документацию.00001
00002
00003
00004
00005
00006
00007
00008 #include "Stanza.h"
00009 Stanza::Stanza(string name, map <string, string> &attrs, Node* parent):Node(name,attrs,parent){
00010
00011 }
00012
00013 Stanza::Stanza(string name, Node* parent,string from, string to, string id):Node(name,parent){
00014 if (from!=""){
00015 setAttribute("from",from);
00016 }
00017 if (to!=""){
00018 setAttribute("to",to);
00019 }
00020 if (id==""){
00021 id=generateID();
00022 }
00023 setAttribute("id",id);
00024 }
00025
00026
00027 Stanza::Stanza(const Node& basedNode):Node(basedNode){
00028 }
00029
00030 Stanza::~Stanza() {
00031
00032 }