OpenStructure
Public Member Functions | Static Public Member Functions
ProfileDB Class Reference

#include <profile_handle.hh>

Public Member Functions

void Save (const String &filename) const
 
void AddProfile (const String &name, ProfileHandlePtr prof)
 
ProfileHandlePtr GetProfile (const String &name) const
 
size_t size () const
 
std::vector< StringGetNames () const
 

Static Public Member Functions

static ProfileDBPtr Load (const String &filename)
 

Detailed Description

Contains a DB of profiles (identified by a unique name (String)).

Definition at line 428 of file profile_handle.hh.

Member Function Documentation

◆ AddProfile()

void AddProfile ( const String name,
ProfileHandlePtr  prof 
)

◆ GetNames()

std::vector<String> GetNames ( ) const

◆ GetProfile()

ProfileHandlePtr GetProfile ( const String name) const

◆ Load()

static ProfileDBPtr Load ( const String filename)
static

◆ Save()

void Save ( const String filename) const

Saves all profiles in DB with limited accuracy of internal data. Binary format with fixed-width integers (should be portable).

◆ size()

size_t size ( ) const
inline

Definition at line 440 of file profile_handle.hh.


The documentation for this class was generated from the following file: