Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Attributes | List of all members
WsArraySerializer Class Reference

Serializes an array. More...

#include <WsArraySerializer.h>

Collaboration diagram for WsArraySerializer:
Collaboration graph

Public Member Functions

 WsArraySerializer (std::set< std::string > &vect)
 Constructor. More...
 
int serialize ()
 serializes the directory More...
 
const std::string getSerializedForm ()
 returns the serailized form of the directory More...
 

Private Attributes

std::set< std::string > m_array
 The array to serialize. More...
 
Json::Value m_root
 the root of the Json tree More...
 

Detailed Description

Serializes an array.

Takes an array (std::vector) as input and outputs a Json tree

Definition at line 26 of file WsArraySerializer.h.

Constructor & Destructor Documentation

WsArraySerializer::WsArraySerializer ( std::set< std::string > &  vect)

Constructor.

Parameters
treethe file system tree
groupsthe groups which the user belongs to
pthe path of the dir to serialize

Definition at line 17 of file WsArraySerializer.cpp.

Member Function Documentation

const string WsArraySerializer::getSerializedForm ( )

returns the serailized form of the directory

Definition at line 32 of file WsArraySerializer.cpp.

Here is the caller graph for this function:

int WsArraySerializer::serialize ( )

serializes the directory

Returns
SUCCESS if ok, FAILURE if an error occured

Definition at line 22 of file WsArraySerializer.cpp.

Member Data Documentation

std::set<std::string> WsArraySerializer::m_array
private

The array to serialize.

Definition at line 52 of file WsArraySerializer.h.

Json::Value WsArraySerializer::m_root
private

the root of the Json tree

Definition at line 57 of file WsArraySerializer.h.


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