CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
operation_serialization.cpp File Reference

Implementation of OperationSerialization. More...

#include "serializer/operation_serialization.h"
#include "operations/operation_descriptor.h"
#include <algorithm>
#include <cctype>
#include <cstdlib>
#include <spdlog/spdlog.h>
+ Include dependency graph for operation_serialization.cpp:

Go to the source code of this file.

Namespaces

namespace  CaptureMoment
 
namespace  CaptureMoment::Core
 Manages the lifecycle of a single IWorkingImage instance.
 
namespace  CaptureMoment::Core::Serializer
 

Functions

std::string CaptureMoment::Core::Serializer::serializeParameter (const Operations::OperationValue &value)
 Namespace containing utilities for serializing and deserializing OperationDescriptor parameters. This isolates the logic for converting OperationValue (std::variant) parameter values to/from string representations.
 
Operations::OperationValue CaptureMoment::Core::Serializer::deserializeParameter (std::string_view value_str)
 Deserializes a string representation back into an OperationValue. This function attempts to infer the type from the string content (e.g., "true" -> Bool, "3.14" -> Float, "10" -> Int).
 
std::string CaptureMoment::Core::Serializer::serializeOperationParameters (const Operations::OperationDescriptor &descriptor)
 Serializes an entire OperationDescriptor's parameters map to a string representation. Iterates through the 'params' map and serializes each value using serializeParameter.
 
bool CaptureMoment::Core::Serializer::deserializeOperationParameters (std::string_view params_str, Operations::OperationDescriptor &descriptor)
 Deserializes a string representation back into an OperationDescriptor's parameters map. Parses the input string and reconstructs the 'params' map using deserializeParameter.
 

Detailed Description

Implementation of OperationSerialization.

Provides serialization for OperationValue (std::variant) without explicit type tags.

Author
CaptureMoment Team
Date
2025

Definition in file operation_serialization.cpp.

CaptureMoment — footer