Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
PropertyWithValueJSON.h File Reference
#include "MantidKernel/DllConfig.h"
#include "MantidKernel/Exception.h"
#include "MantidKernel/Matrix.h"
#include "PropertyManager_fwd.h"
#include <json/value.h>
#include <memory>
#include <vector>

Go to the source code of this file.

Classes

struct  Mantid::Kernel::pwvjdetail::JsonType< ValueType >
 
struct  Mantid::Kernel::pwvjdetail::JsonType< int >
 
struct  Mantid::Kernel::pwvjdetail::JsonType< long >
 
struct  Mantid::Kernel::pwvjdetail::JsonType< long long >
 
struct  Mantid::Kernel::pwvjdetail::JsonType< unsigned int >
 
struct  Mantid::Kernel::pwvjdetail::JsonType< unsigned long >
 
struct  Mantid::Kernel::pwvjdetail::JsonType< unsigned long long >
 
struct  Mantid::Kernel::pwvjdetail::ToCpp< T >
 General type to convert a Json::Value to a set C++ type. More...
 
struct  Mantid::Kernel::pwvjdetail::ToCpp< bool >
 Specialization of ToCpp for bool. More...
 
struct  Mantid::Kernel::pwvjdetail::ToCpp< double >
 Specialization of ToCpp for double. More...
 
struct  Mantid::Kernel::pwvjdetail::ToCpp< float >
 Specialization of ToCpp for float. More...
 
struct  Mantid::Kernel::pwvjdetail::ToCpp< int >
 Specialization of ToCpp for int. More...
 
struct  Mantid::Kernel::pwvjdetail::ToCpp< long >
 Specialization of ToCpp for long. More...
 
struct  Mantid::Kernel::pwvjdetail::ToCpp< long long >
 Specialization of ToCpp for long long. More...
 
struct  Mantid::Kernel::pwvjdetail::ToCpp< std::string >
 Specialization of ToCpp for std::string. More...
 
struct  Mantid::Kernel::pwvjdetail::ToCpp< std::vector< T > >
 Specialization of ToCpp for std::vector. More...
 
struct  Mantid::Kernel::pwvjdetail::ToCpp< unsigned int >
 Specialization of ToCpp for unsigned int. More...
 
struct  Mantid::Kernel::pwvjdetail::ToCpp< unsigned long long int >
 Specialization of ToCpp for unsigned long long int. More...
 

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::Kernel
 
namespace  Mantid::Kernel::pwvjdetail
 

Functions

MANTID_KERNEL_DLL PropertyManager_sptr Mantid::Kernel::createPropertyManager (const Json::Value &keyValues)
 Attempt to create a PropertyManager from the Json::Value. More...
 
template<typename Type >
Type Mantid::Kernel::decode (const Json::Value &value)
 Attempt to decode the given Json::Value as the given Type. More...
 
MANTID_KERNEL_DLL std::unique_ptr< Property > Mantid::Kernel::decodeAsProperty (const std::string &name, const Json::Value &value)
 Attempt to create a Property of the most appropriate type from a string name and Json value object. More...
 
template<typename ValueType >
Json::Value Mantid::Kernel::encodeAsJson (const Kernel::Matrix< ValueType > &)
 Encode a Matrix as a Json::Value. More...
 
template<typename ValueType >
Json::Value Mantid::Kernel::encodeAsJson (const std::shared_ptr< ValueType > &)
 Encode a shared_ptr by dereferencing a it and encoding its value. More...
 
template<>
Json::Value Mantid::Kernel::encodeAsJson (const std::vector< bool > &vectorValue)
 Specialization to encode a std::vector<bool> value as a Json::Value arrayValue type. More...
 
template<typename ValueType >
Json::Value Mantid::Kernel::encodeAsJson (const std::vector< ValueType > &vectorValue)
 Encode a std::vector value as a Json::Value arrayValue type. More...
 
template<typename ValueType >
Json::Value Mantid::Kernel::encodeAsJson (const ValueType &value)
 Encode a single value as a Json::Value. More...