Projects tagged ‘reflection’ and ‘serialization’


Jump to tag:

Projects tagged ‘reflection’ and ‘serialization’

Filtered by Project Tags reflection serialization

Refine results Project Tags python (2) feed (1) simple (1) testing (1) cplusplus (1) type (1) objects (1) java (1) yaml (1) introspection (1) csharp (1) bytecode (1)

[5 total ]

1 Users

The goal of this tool is to provide high-level language features (like introspection and serialization) to C/C++ without extra effort. It also can be used for fast-prototyping as it allows programs ... [More] and libraries to export and reuse all its features into very high-level languages like python. [Less]
Created 12 months ago.

1 Users
   

Okay, it's pretty easy to instantiate objects in Java through standard reflection. However there are many cases where you need to go beyond what reflection provides. For example, if there's no ... [More] public constructor, you want to bypass the constructor code, or set final fields. There are numerous clever (but fiddly) approaches to getting around this and this library provides a simple way to get at them. You will find the official site here. [Less]
Created about 1 year ago.

0 Users

YamlSerializer serializes arbitrary .NET native objects into YAML text. It can also manipulates a generic YAML documents. YamlSerializer は任意の .NET のオブジェクトを YAML ... [More] ドキュメントにシリアライズすることができます。もちろん一般的な YAML ドキュメントも読み書きできます。 [Less]
Created 3 months ago.

0 Users

MyObject myObject = new MyObject(); // Wrap myObject into a SerializableObject instance using (SerializableObject serializableMyObject = new SerializableObject(myObject)) { // Access myObject ... [More] serializable members by name // data type conversion is performed automatically serializableMyObject["SomeGuid"] = Guid.NewGuid().ToString("N"); // converted back to Guid serializableMyObject["Name"] = "Foo"; serializableMyObject["IsNew"] = "TRUE"; // converted to boolen // Enumerate myObject serializable members foreach (SerializableMember member in serializableMyObject) { Console.WriteLine("{0} {1} {2}", member.Name, member.Type, member.Value); } } // Access newly changed values via properties Console.WriteLine(myObject.Guid); Console.WriteLine(myObject.Name); Console.WriteLine(myObject.IsNew);12/20/2008 UPDATE : Data type conversion can be done with plugins. Add the following sections to the application configuration file to configure the converter. NOTE: The converter must implement the SystemUtilities.Serialization.IConverter interface. The easiest way to create a converter is by extending the SystemUtilities.Serialization.BaseConverter abstract class. RELATED PROJECTS objectpool: a Generic Object Pool for .NET with built-in support for asynchronous operations and concurrent updates. objectstateprovider: a generic object state provider for .NET. [Less]
Created 11 months ago.

0 Users

Rss for pythonCreates a list of python objects with the fields of the feed. So if your feed looks like: ... this is a this is b this is the second a < this is the second b ... [More] you will get a list of Item objects with the fields: item.a , and item.b with the values taken from the field. Check out the example ...reader = RssReader("http://feeds.digg.com/digg/news/popular.rss") reader.set_item_tag("item") reader.add_item_desc(remote_name = "title" , local_name="title",type=unicode) \ .add_item_desc(remote_name = "description", local_name = "desc" , type=unicode) \ .add_item_desc(remote_name = "pubDate" , local_name = "date" , type=unicode) \ .add_item_desc(remote_name = "digg:diggCount" , local_name = "diggs" , type=int) \ .add_item_desc(remote_name = "digg:commentCount" , local_name = "comments" , type=int) \ .add_item_desc(remote_name = "digg:username" , local_name = "by" , type=unicode) \ print("First 10 digg stories - sorted by digg count") items = reader.read() items.sort( key = lambda item : item.diggs , reverse = True) for item in items[:10]: print( "\"%s\", by %s, comments: %d, diggs: %d" % (item.title ,item.by ,item.comments,item.diggs)) [Less]
Created 3 months ago.