#include <CoWLibrary.h>
Definition at line 16 of file CoWLibrary.h.
◆ CoWLibrary() [1/2]
CoWTools::CoWLibrary::CoWLibrary |
( |
bool |
Summary = true | ) |
|
|
inline |
◆ CoWLibrary() [2/2]
CoWTools::CoWLibrary::CoWLibrary |
( |
const std::string & |
n, |
|
|
bool |
Summary = true |
|
) |
| |
|
inline |
◆ fromRecord()
std::shared_ptr< CoWLibrary > CoWTools::CoWLibrary::fromRecord |
( |
std::istream & |
in, |
|
|
bool |
summary |
|
) |
| |
|
static |
Definition at line 23 of file CoWLibrary.cxx.
25 if(std::getline(in,libLine).eof()){
27 std::cerr<<
"Returning 0"<<std::endl;
32 std::string
libName=
"Anonymous";
35 sscanf(libLine.c_str(),
"%*s %*s %*s %*s %*s%n",
38 if(libLine.size()>(
uint)(len+1)){
39 nfields=sscanf(libLine.substr(len+1).c_str(),
"%2047s",
buff);
◆ operator bool()
CoWTools::CoWLibrary::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Definition at line 38 of file CoWLibrary.h.
41 for(
int i=0;
i<11;
i++){
42 if(
vals[
i])
return true;
47 if(*(
i.second))
return true;
◆ operator+=()
Definition at line 67 of file CoWLibrary.h.
69 std::cerr<<
"Warning trying to add different libraries. Ignoring"<<std::endl;
72 for(
auto i:rhs.m_records){
75 *(
l->second)+=*(
i.second);
77 m_records.insert(std::make_pair(
i.first,std::make_shared<CoWRecord>(*(
i.second))));
◆ operator-()
CoWLibrary CoWTools::CoWLibrary::operator- |
( |
| ) |
const |
|
inline |
◆ operator-=()
Definition at line 84 of file CoWLibrary.h.
86 std::cerr<<
"Warning trying to subtract different libraries. Ignoring"<<std::endl;
89 for(
auto i:rhs.m_records){
92 *(
l->second)-=*(
i.second);
94 m_records.insert(std::make_pair(
i.first,std::make_shared<CoWRecord>(-*(
i.second))));
◆ parseRecord()
void CoWTools::CoWLibrary::parseRecord |
( |
std::istream & |
in | ) |
|
◆ operator+
Definition at line 53 of file CoWLibrary.h.
54 if(lhs.m_libName!=rhs.m_libName){
55 std::cerr<<
"Warning trying to add different libraries. Ignoring"<<std::endl;
◆ operator-
Definition at line 30 of file CoWLibrary.h.
31 if(lhs.m_libName!=rhs.m_libName){
32 std::cerr<<
"Warning trying to subtract different libraries. Ignoring"<<std::endl;
◆ operator<<
◆ m_libName
std::string CoWTools::CoWLibrary::m_libName |
◆ m_ms
◆ m_records
std::unordered_map<std::string,std::shared_ptr<CoWRecord> > CoWTools::CoWLibrary::m_records |
◆ m_summary
bool CoWTools::CoWLibrary::m_summary |
|
private |
The documentation for this class was generated from the following files: