tzwrapper.cc: fixed use of iterator after erase
[barry.git] / src / j_manager.cc
blob36075b0335d6cbc8ed27772c3c7408010ce7eef8
1 ///
2 /// \file j_manager.cc
3 /// Application management classes
4 ///
6 /*
7 Copyright (C) 2009, Nicolas VIVIEN
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 See the GNU General Public License in the COPYING file at the
19 root directory of this project for more details.
22 #include "j_manager.h"
23 #include "dp_codinfo.h"
24 #include "debug.h"
27 namespace Barry { namespace JDWP {
30 // JDWAppInfo class
31 //------------------
34 void JDWAppInfo::Load(JDG::CodInfo &info)
36 dout("JDWAppInfo::load" << endl);
38 // Assign uniqueId
39 uniqueId = info.GetUniqueId();
41 // Add Class (concat with a previous list)
42 JDG::ClassList *list = &(info.classList);
44 classList.insert(classList.end(), list->begin(), list->end());
48 }} // namespace Barry::JDWP