objcopy.cpp File Reference

#include <stdlib.h>
#include <iostream>
#include <strstream>
#include <fstream>
#include <string>
#include <set>
#include <map>
#include <vector>
#include <cstring>

Go to the source code of this file.

Data Structures

class  _rstream_t
class  rstream_t
class  StringTable
struct  symbol_t

Typedefs

typedef std::map< string_t,
string_t
str_hash_t
typedef std::pair< string_t,
string_t
str_pair_t
typedef std::string string_t
typedef std::vector< string_tstrings_t

Functions

void die (string_t const &message)
string_t find (str_hash_t const &hash, string_t const &key)
void help ()
int main (int argc, char const *argv[])
void obj_copy (string_t const &src, string_t const &dst, str_hash_t const &redefs)
string_t shift (strings_t &strs)
void split (string_t const &str, char ch, string_t &head, string_t &tail)
void stop (string_t const &message)

Typedef Documentation

typedef std::map< string_t, string_t > str_hash_t

Definition at line 60 of file objcopy.cpp.

typedef std::pair< string_t, string_t > str_pair_t

Definition at line 61 of file objcopy.cpp.

typedef std::string string_t

Definition at line 58 of file objcopy.cpp.

typedef std::vector< string_t > strings_t

Definition at line 59 of file objcopy.cpp.


Function Documentation

void die ( string_t const &  message  ) 

Definition at line 86 of file objcopy.cpp.

Referenced by main().

string_t find ( str_hash_t const &  hash,
string_t const &  key 
)

Definition at line 74 of file objcopy.cpp.

Referenced by obj_copy().

void help (  ) 

Definition at line 444 of file objcopy.cpp.

Referenced by main().

int main ( int  argc,
char const *  argv[] 
)

Definition at line 478 of file objcopy.cpp.

References args, die(), help(), obj_copy(), shift(), and split().

void obj_copy ( string_t const &  src,
string_t const &  dst,
str_hash_t const &  redefs 
)

Definition at line 323 of file objcopy.cpp.

References StringTable::decode(), StringTable::encode(), find(), i, stop(), and StringTable::write().

Referenced by main().

string_t shift ( strings_t strs  ) 

Definition at line 67 of file objcopy.cpp.

Referenced by main().

void split ( string_t const &  str,
char  ch,
string_t head,
string_t tail 
)

Definition at line 432 of file objcopy.cpp.

Referenced by main().

void stop ( string_t const &  message  ) 

Definition at line 91 of file objcopy.cpp.


Generated on 25 Aug 2013 for libomp_oss by  doxygen 1.6.1