コード例 #1
0
ファイル: serialize.hpp プロジェクト: fiddleplum/ve
	void serialize(std::ostream & out, std::vector<T> const & v, void(*serializeItem)(std::ostream &, T const &) = serialize)
	{
		serialize(out, (int)v.size());
		for (T const & item : v)
		{
			serializeItem(out, item);
		}
	}
コード例 #2
0
ファイル: kgcolors.cpp プロジェクト: jorgeolivares/krusader
void KgColors::serialize(QDataStream & stream)
{
    serializeItem(stream, "Alternate Background");
    serializeItem(stream, "Alternate Marked Background");
    serializeItem(stream, "Background");
    serializeItem(stream, "Current Background");
    serializeItem(stream, "Current Foreground");
    serializeItem(stream, "Enable Alternate Background");
    serializeItem(stream, "Foreground");
    serializeItem(stream, "Directory Foreground");
    serializeItem(stream, "Executable Foreground");
    serializeItem(stream, "Symlink Foreground");
    serializeItem(stream, "Invalid Symlink Foreground");
    serializeItem(stream, "Inactive Alternate Background");
    serializeItem(stream, "Inactive Alternate Marked Background");
    serializeItem(stream, "Inactive Background");
    serializeItem(stream, "Inactive Current Foreground");
    serializeItem(stream, "Inactive Current Background");
    serializeItem(stream, "Inactive Marked Background");
    serializeItem(stream, "Inactive Marked Current Foreground");
    serializeItem(stream, "Inactive Marked Foreground");
    serializeItem(stream, "Inactive Foreground");
    serializeItem(stream, "Inactive Directory Foreground");
    serializeItem(stream, "Inactive Executable Foreground");
    serializeItem(stream, "Inactive Symlink Foreground");
    serializeItem(stream, "Inactive Invalid Symlink Foreground");
    serializeItem(stream, "Dim Inactive Colors");
    serializeItem(stream, "Dim Target Color");
    serializeItem(stream, "Dim Factor");
    serializeItem(stream, "KDE Default");
    serializeItem(stream, "Marked Background");
    serializeItem(stream, "Marked Current Foreground");
    serializeItem(stream, "Marked Foreground");
    serializeItem(stream, "Show Current Item Always");
#ifdef SYNCHRONIZER_ENABLED
    serializeItem(stream, "Synchronizer Equals Foreground");
    serializeItem(stream, "Synchronizer Equals Background");
    serializeItem(stream, "Synchronizer Differs Foreground");
    serializeItem(stream, "Synchronizer Differs Background");
    serializeItem(stream, "Synchronizer LeftCopy Foreground");
    serializeItem(stream, "Synchronizer LeftCopy Background");
    serializeItem(stream, "Synchronizer RightCopy Foreground");
    serializeItem(stream, "Synchronizer RightCopy Background");
    serializeItem(stream, "Synchronizer Delete Foreground");
    serializeItem(stream, "Synchronizer Delete Background");
#endif
    serializeItem(stream, "Quicksearch Match Foreground");
    serializeItem(stream, "Quicksearch Match Background");
    serializeItem(stream, "Quicksearch Non-match Foreground");
    serializeItem(stream, "Quicksearch Non-match Background");
    serializeItem(stream, "Statusbar Foreground Active");
    serializeItem(stream, "Statusbar Background Active");
    serializeItem(stream, "Statusbar Foreground Inactive");
    serializeItem(stream, "Statusbar Background Inactive");
    stream << QString("") << QString("");
}