SVCS - English Documentation
Loading...
Searching...
No Matches
Blob.hxx
Go to the documentation of this file.
1
17#pragma once
19#include "VcsObject.hxx"
20#include <string>
21
33 * которые формируют строительные блоки системы контроля версий.
34 */
35namespace svcs::core {
36
50class Blob : public VcsObject {
51private:
59 std::string data;
60
61public:
73 Blob(std::string raw_data);
74
75 // VcsObject overrides
76
87 [[nodiscard]] std::string getType() const override;
88
99 [[nodiscard]] std::string serialize() const override;
100
110 [[nodiscard]] const std::string& getData() const;
111};
112
113}
Definition of the abstract base class for all Version Control System objects.
std::string serialize() const override
Serializes the object's core data for hashing and storage.
Definition Blob.cxx:31
Blob(std::string raw_data)
Constructor for the Blob object.
Definition Blob.cxx:18
const std::string & getData() const
Returns the raw data content stored in the Blob.
Definition Blob.cxx:35
std::string getType() const override
Returns the type of the VCS object.
Definition Blob.cxx:27
VcsObject()=default
Default constructor. Required for derived classes.
Core VCS data structures and object model.