doc: updated bio man page with new cstore output mode
[barry.git] / src / a_application.cc
blob22a53e33daebe30bf024dc533637006d76fe6bf2
1 ///
2 /// \file a_application.cc
3 /// ALX Application class based on CODSection class
4 ///
6 /*
7 Copyright (C) 2010, Nicolas VIVIEN
8 Copyright (C) 2005-2010, 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_application.h"
30 namespace Barry {
33 namespace ALX {
36 Application::Application(void)
37 : CODSection()
42 Application::Application(const xmlpp::SaxParser::AttributeList& attrs)
43 : CODSection(attrs)
48 Application::~Application(void)
53 void Application::Dump(std::ostream &os) const
55 os << " Application " << name << " - " << version << std::endl;
56 os << " ID : " << id << std::endl;
57 os << " Description : " << description << std::endl;
58 os << " Vendor : " << vendor << std::endl;
59 os << " Copyright : " << copyright << std::endl;
60 os << " Required : " << (isRequired ? "Yes" : "No") << std::endl;
62 std::vector<std::string>::const_iterator b = codfiles.begin(), e = codfiles.end();
64 os << " Files : " << std::endl;
65 for (; b != e; b++)
66 os << " - " << directory << "/" << (*b) << std::endl;
70 } // namespace ALX
72 } // namespace Barry