ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
elf-ldd.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2012 INRIA
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Frederic Urbani <frederic.urbani@inria.fr>
19  *
20  */
21 #ifndef ELF_LDD_H_
22 #define ELF_LDD_H_
23 
24 #include "elf-dependencies.h"
25 #include <string>
26 #include <vector>
27 
28 namespace ns3 {
29 
30 class SharedLibrary;
31 
32 class ElfLdd
33 {
34 public:
35  ElfLdd (std::string shortName, std::string fullName);
36 
37  std::vector<struct ElfDependencies::Dependency> GetDeps () const;
38 
39  ElfDependencies::Iterator Begin (void) const;
40  ElfDependencies::Iterator End (void) const;
41 
42 
43 private:
44  void Loop (std::string s, std::string f);
45  SharedLibrary* ExtractLibraries (std::string s, std::string f);
46  std::vector<struct ElfDependencies::Dependency> m_deps;
47 };
48 
49 } // namespace ns3
50 
51 #endif /* ELF_LDD_H_ */