desktop: made it possible to run Detect() multiple times in EvoSources
[barry/progweb.git] / src / a_library.cc
blob806a2945214b56251b79d3117cdcb2469bb1e1cb
1 ///
2 /// \file a_library.cc
3 /// ALX Library class based on CODSection class
4 ///
6 /*
7 Copyright (C) 2010, Nicolas VIVIEN
8 Copyright (C) 2005-2011, Net Direct Inc. (http://www.netdirect.ca/)
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 See the GNU General Public License in the COPYING file at the
20 root directory of this project for more details.
23 #include <iostream>
24 #include <fstream>
25 #include <sstream>
27 #include "a_library.h"
28 #include "ios_state.h"
31 namespace Barry {
34 namespace ALX {
37 Library::Library(void)
38 : CODSection()
43 Library::Library(const xmlpp::SaxParser::AttributeList& attrs)
44 : CODSection(attrs)
49 Library::~Library(void)
54 void Library::Dump(std::ostream &os) const
56 ios_format_state state(os);
58 os << " Library " << name << " - " << version << std::endl;
59 os << " ID : " << id << std::endl;
60 os << " Description : " << description << std::endl;
61 os << " Vendor : " << vendor << std::endl;
62 os << " Copyright : " << copyright << std::endl;
63 os << " Required : " << (isRequired ? "Yes" : "No") << std::endl;
65 std::vector<std::string>::const_iterator b = codfiles.begin(), e = codfiles.end();
67 os << " Files : " << std::endl;
68 for (; b != e; b++)
69 os << " - " << directory << "/" << (*b) << std::endl;
73 } // namespace ALX
75 } // namespace Barry