OdbDesignLib
OdbDesign ODB++ Parsing Library
 
Loading...
Searching...
No Matches
Odb::Lib::FileModel::Design::FileArchive Class Reference
Inheritance diagram for Odb::Lib::FileModel::Design::FileArchive:
Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::FileArchive > Odb::Lib::FileModel::ISaveable

Public Types

typedef std::vector< std::shared_ptr< FileArchive > > Vector
 
typedef std::map< std::string, std::shared_ptr< FileArchive > > StringMap
 

Public Member Functions

 FileArchive (const std::string &path)
 
std::string GetRootDir () const
 
std::string GetProductName () const
 
std::string GetFilename () const
 
std::string GetFilePath () const
 
const StepDirectory::StringMap & GetStepsByName () const
 
const SymbolsDirectory::StringMap & GetSymbolsDirectoriesByName () const
 
const MiscInfoFileGetMiscInfoFile () const
 
const MatrixFileGetMatrixFile () const
 
const StandardFontsFileGetStandardFontsFile () const
 
const AttrListFileGetMiscAttrListFile () const
 
std::shared_ptr< StepDirectoryGetStepDirectory (const std::string &stepName="") const
 
bool ParseFileModel ()
 
bool SaveFileModel (const std::filesystem::path &directory)
 
bool SaveFileModel (const std::filesystem::path &directory, const std::string &archiveName)
 
std::unique_ptr< Odb::Lib::Protobuf::FileArchive > to_protobuf () const override
 
void from_protobuf (const Odb::Lib::Protobuf::FileArchive &message) override
 
- Public Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::FileArchive >
bool to_pbstring (std::string &pb_string) const
 
bool from_pbstring (const std::string &pb_string)
 
bool to_stream (std::ostream &outputStream) const
 
bool from_stream (std::istream &inputStream)
 
std::string to_json () const override
 
void from_json (const std::string &json) override
 

Detailed Description

Definition at line 22 of file FileArchive.h.

Member Typedef Documentation

◆ StringMap

typedef std::map<std::string, std::shared_ptr<FileArchive> > Odb::Lib::FileModel::Design::FileArchive::StringMap

Definition at line 57 of file FileArchive.h.

◆ Vector

typedef std::vector<std::shared_ptr<FileArchive> > Odb::Lib::FileModel::Design::FileArchive::Vector

Definition at line 56 of file FileArchive.h.

Constructor & Destructor Documentation

◆ FileArchive() [1/2]

Odb::Lib::FileModel::Design::FileArchive::FileArchive ( )

Definition at line 20 of file FileArchive.cpp.

◆ FileArchive() [2/2]

Odb::Lib::FileModel::Design::FileArchive::FileArchive ( const std::string &  path)
explicit

Definition at line 25 of file FileArchive.cpp.

◆ ~FileArchive()

Odb::Lib::FileModel::Design::FileArchive::~FileArchive ( )
override

Definition at line 30 of file FileArchive.cpp.

Member Function Documentation

◆ from_protobuf()

void Odb::Lib::FileModel::Design::FileArchive::from_protobuf ( const Odb::Lib::Protobuf::FileArchive &  message)
overridevirtual

◆ GetFilename()

std::string Odb::Lib::FileModel::Design::FileArchive::GetFilename ( ) const

Definition at line 51 of file FileArchive.cpp.

◆ GetFilePath()

std::string Odb::Lib::FileModel::Design::FileArchive::GetFilePath ( ) const

Definition at line 46 of file FileArchive.cpp.

◆ GetMatrixFile()

const MatrixFile & Odb::Lib::FileModel::Design::FileArchive::GetMatrixFile ( ) const

Definition at line 491 of file FileArchive.cpp.

◆ GetMiscAttrListFile()

const AttrListFile & Odb::Lib::FileModel::Design::FileArchive::GetMiscAttrListFile ( ) const

Definition at line 501 of file FileArchive.cpp.

◆ GetMiscInfoFile()

const MiscInfoFile & Odb::Lib::FileModel::Design::FileArchive::GetMiscInfoFile ( ) const

Definition at line 486 of file FileArchive.cpp.

◆ GetProductName()

std::string Odb::Lib::FileModel::Design::FileArchive::GetProductName ( ) const

Definition at line 41 of file FileArchive.cpp.

◆ GetRootDir()

std::string Odb::Lib::FileModel::Design::FileArchive::GetRootDir ( ) const

Definition at line 36 of file FileArchive.cpp.

◆ GetStandardFontsFile()

const StandardFontsFile & Odb::Lib::FileModel::Design::FileArchive::GetStandardFontsFile ( ) const

Definition at line 496 of file FileArchive.cpp.

◆ GetStepDirectory()

std::shared_ptr< StepDirectory > Odb::Lib::FileModel::Design::FileArchive::GetStepDirectory ( const std::string &  stepName = "") const

Definition at line 506 of file FileArchive.cpp.

◆ GetStepsByName()

const StepDirectory::StringMap & Odb::Lib::FileModel::Design::FileArchive::GetStepsByName ( ) const

Definition at line 57 of file FileArchive.cpp.

◆ GetSymbolsDirectoriesByName()

const SymbolsDirectory::StringMap & Odb::Lib::FileModel::Design::FileArchive::GetSymbolsDirectoriesByName ( ) const

Definition at line 62 of file FileArchive.cpp.

◆ ParseFileModel()

bool Odb::Lib::FileModel::Design::FileArchive::ParseFileModel ( )

Definition at line 67 of file FileArchive.cpp.

◆ to_protobuf()

std::unique_ptr< Protobuf::FileArchive > Odb::Lib::FileModel::Design::FileArchive::to_protobuf ( ) const
overridevirtual

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