SOL9 2.0 Class: Property

 SOL9 C++ Class Library  SOL9 Samples  SOL9 Tutorial  SOL9 FAQ  SOL9 ClassTree 

Source code

/*
 * Property.h 
 * Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


// SOL9
// 2009/05/14
#include <sol/StringT.h>

namespace SOL {

class Property :public Object {

private:
    StringT<char> name;
    StringT<char> value;

public:
    Property(const char* cname="", const char* cvalue="")
    :name(cname),
    value(cvalue)
    {
    }

public:
    void setName(const char* cname)
    {
        if (cname) {
            name = cname;
        }
    }

public:
    void setValue(const char* cvalue)
    {
        if (cvalue) {
            value = cvalue;
        }
    }

public:
    const char* getName()
    {
        return (const char*)name;
    }

public:
    const char* getValue()
    {
        return (const char*)value;
    }
};

}


Last modified: 1 Feb 2012

Copyright (c) 2009-2012 Antillia.com ALL RIGHTS RESERVED.