~ubuntu-branches/ubuntu/vivid/soundscaperenderer/vivid

« back to all changes in this revision

Viewing changes to data/MacOSX/dylibbundler/src/Dependency.h

  • Committer: Package Import Robot
  • Author(s): IOhannes m zmölnig (Debian/GNU)
  • Date: 2014-05-08 16:58:09 UTC
  • Revision ID: package-import@ubuntu.com-20140508165809-7tz9dhu5pvo5wy25
Tags: upstream-0.4.1~dfsg
Import upstream version 0.4.1~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 This program is free software; you can redistribute it and/or modify
 
3
 it under the terms of the GNU General Public License as published by
 
4
 the Free Software Foundation; either version 2 of the License, or
 
5
 (at your option) any later version.
 
6
 
 
7
 This program is distributed in the hope that it will be useful,
 
8
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
 GNU General Public License for more details.
 
11
 
 
12
 You should have received a copy of the GNU General Public License along
 
13
 with this program; if not, write to the Free Software Foundation, Inc.,
 
14
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
15
 */
 
16
 
 
17
 
 
18
#ifndef _depend_h_
 
19
#define _depend_h_
 
20
 
 
21
#include <string>
 
22
#include <vector>
 
23
 
 
24
class Dependency
 
25
{
 
26
    // origin
 
27
    std::string filename;
 
28
    std::string prefix;
 
29
    std::vector<std::string> symlinks;
 
30
    
 
31
    // installation
 
32
    std::string new_name;
 
33
public:
 
34
    Dependency(std::string path);
 
35
 
 
36
    void print();
 
37
 
 
38
    std::string getOriginalFileName() const{ return filename; }
 
39
    std::string getOriginalPath() const{ return prefix+filename; }
 
40
    std::string getInstallPath();
 
41
    std::string getInnerPath();
 
42
        
 
43
    void addSymlink(std::string s);
 
44
    int getSymlinkAmount() const{ return symlinks.size(); }
 
45
 
 
46
    std::string getSymlink(const int i) const{ return symlinks[i]; }
 
47
    std::string getPrefix() const{ return prefix; }
 
48
 
 
49
    void copyYourself();
 
50
    void fixFileThatDependsOnMe(std::string file);
 
51
    
 
52
    // comapres the given Dependency with this one. If both refer to the same file,
 
53
    // it returns true and merges both entries into one.
 
54
    bool mergeIfSameAs(Dependency& dep2);
 
55
};
 
56
 
 
57
 
 
58
#endif
 
 
b'\\ No newline at end of file'