|
degate 0.1.1
|
00001 /* -*-c++-*- 00002 00003 This file is part of the IC reverse engineering tool degate. 00004 00005 Copyright 2008, 2009, 2010 by Martin Schobert 00006 00007 Degate is free software: you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation, either version 3 of the License, or 00010 any later version. 00011 00012 Degate is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with degate. If not, see <http://www.gnu.org/licenses/>. 00019 00020 */ 00021 00022 #include "globals.h" 00023 #include "SubProjectAnnotation.h" 00024 #include <boost/format.hpp> 00025 00026 using namespace degate; 00027 00028 SubProjectAnnotation::SubProjectAnnotation(int min_x, int max_x, int min_y, int max_y, 00029 std::string const& subproject_path) : 00030 Annotation(min_x, max_x, min_y, max_y, Annotation::SUBPROJECT) { 00031 00032 set_path(subproject_path); 00033 } 00034 00035 SubProjectAnnotation::SubProjectAnnotation(BoundingBox const& bbox, 00036 std::string const& subproject_path) : 00037 Annotation(bbox, Annotation::SUBPROJECT) { 00038 00039 set_path(subproject_path); 00040 } 00041 00042 void SubProjectAnnotation::set_path(std::string const& subproject_path) { 00043 Annotation::set_parameter("subproject-directory", subproject_path); 00044 } 00045 00046 std::string SubProjectAnnotation::get_path() const { 00047 return Annotation::get_parameter<std::string>("subproject-directory"); 00048 }
1.7.4