fw4spl
fwAtoms/src/fwAtoms/String.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include "fwAtoms/registry/macros.hpp"
8 #include "fwAtoms/String.hpp"
9 
10 fwAtomsRegisterMacro( ::fwAtoms::String );
11 
12 namespace fwAtoms
13 {
14 
15 //------------------------------------------------------------------------------
16 
17 String::sptr String::New(std::string value)
18 {
19  String::sptr std = String::New();
20  std->m_value = value;
21  return std;
22 }
23 
24 //------------------------------------------------------------------------------
25 
26 Base::sptr String::clone() const
27 {
28  return String::New(m_value);
29 }
30 
31 }
32 
fwAtoms contains basic objects to represent any other kind of object
static FWATOMS_API String::sptr New(std::string value)
Construct a new Object represented a string.
STL namespace.
virtual FWATOMS_API Base::sptr clone() const override
Returns a clone object.
Class represented a String.