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

Declaration of OperationSerialization interface. More...

#include <string>
#include <string_view>
#include "operations/operation_descriptor.h"
+ Include dependency graph for operation_serialization.h:
+ This graph shows which files directly or indirectly include this file:

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

Declaration of OperationSerialization interface.

Author
CaptureMoment Team
Date
2025

Definition in file operation_serialization.h.

CaptureMoment — footer