Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <iostream>
00024 #include <fstream>
00025 #include <sstream>
00026
00027 #include "a_library.h"
00028
00029
00030 namespace Barry {
00031
00032
00033 namespace ALX {
00034
00035
00036 Library::Library(void)
00037 : CODSection()
00038 {
00039 }
00040
00041
00042 Library::Library(const xmlpp::SaxParser::AttributeList& attrs)
00043 : CODSection(attrs)
00044 {
00045 }
00046
00047
00048 Library::~Library(void)
00049 {
00050 }
00051
00052
00053 void Library::Dump(std::ostream &os) const
00054 {
00055 os << " Library " << name << " - " << version << std::endl;
00056 os << " ID : " << id << std::endl;
00057 os << " Description : " << description << std::endl;
00058 os << " Vendor : " << vendor << std::endl;
00059 os << " Copyright : " << copyright << std::endl;
00060 os << " Required : " << (isRequired ? "Yes" : "No") << std::endl;
00061
00062 std::vector<std::string>::const_iterator b = codfiles.begin(), e = codfiles.end();
00063
00064 os << " Files : " << std::endl;
00065 for (; b != e; b++)
00066 os << " - " << directory << "/" << (*b) << std::endl;
00067 }
00068
00069
00070 }
00071
00072 }
00073