ct_common  1.0.1
Common library for combinatorial testing
src/ct_common/common/exp_s_cstring.cpp
Go to the documentation of this file.
00001 //===----- ct_common/common/exp_s_cstring.cpp -------------------*- C++ -*-===//
00002 //
00003 //                      The ct_common Library
00004 //
00005 // This file is distributed under the MIT license. See LICENSE for details.
00006 //
00007 //===----------------------------------------------------------------------===//
00008 //
00009 // This file contains the function definitions of class Exp_S_CString
00010 //
00011 //===----------------------------------------------------------------------===//
00012 
00013 #include <ct_common/common/exp_s_cstring.h>
00014 
00015 using namespace ct::common;
00016 
00017 Exp_S_CString::Exp_S_CString(void)
00018     : Exp_S_Atom(), value_() {
00019 }
00020 
00021 Exp_S_CString::Exp_S_CString(const Exp_S_CString &from)
00022   : Exp_S_Atom(from), value_(from.value_) {
00023 }
00024 
00025 Exp_S_CString &Exp_S_CString::operator = (const Exp_S_CString &right) {
00026   Exp_S_Atom::operator=(right);
00027   this->value_ = right.value_;
00028   return *this;
00029 }
00030 
00031 Exp_S_CString::~Exp_S_CString(void) {
00032 }
00033 
00034 const std::string &Exp_S_CString::get_str_value(void) const {
00035   return this->value_;
00036 }
00037 
00038 EvalType_String Exp_S_CString::Evaluate(const std::vector<boost::shared_ptr<ParamSpec> > &param_specs,
00039                                     const Assignment &assignment) const {
00040   return EvalType_String(this->value_, true);
00041 }
00042 
00043 std::string Exp_S_CString::get_class_name(void) const {
00044   return Exp_S_CString::class_name();
00045 }
00046 
00047 std::string Exp_S_CString::class_name(void) {
00048   return "Exp_S_CString";
00049 }
00050 
00051 void Exp_S_CString::dump(std::ostream &os, const std::vector<boost::shared_ptr<ParamSpec> > &param_specs) const {
00052   os << this->get_str_value();
00053 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines