Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
.Net Runtime Library for Delphi 6.0.4.0
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
AnyChart JS Charts and Dashboards 8.4.2
OrgChart JS 3.8.0
dbForge Compare Bundle for MySQL 8.1
dbForge Search for SQL Server 2.3
Database Workbench Pro 5.5.0
Luxand FaceSDK 7.0
SSIS Data Flow Components 1.10
Entity Developer Professional 6.3
dbForge Index Manager for SQL Server 1.9
dbForge Data Generator For MySQL 2.2
Magento Australia Post eParcel Extension 1.0
Top Code
soccerbet 1.0
Betting system 6.x-1.x-dev
Cuckoo Search (CS) Algorithm 1.0
JEDI Database Desktop 27012002
JAC (Java Asn.1 Compiler) 3.0
Analog Clock from Jay 1.0
Stepping stone algorithum for solving the transhipment problem
Equipment Rental Script 1.0
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
object tracking using kalman filter 1.0
BS/1 Accounting - Accounting Source Code
Time Tracking Software
College Management System Script 1.0.4
XHint 1.0
Online Car Rental Management Software Solution Alpha
Top Rated
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
PHP Digital Download Script 1.0.4
C struct decorator 
File ID: 65117






C struct decorator 
Download C struct decorator http://code.activestate.com/recipes/576781-self-logging-exceptions/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 11
Submit Rating:
C struct decorator  Description
Description: Like my earlier C function decorator, this recipe is designed to make it easier to interact with C by removing some of the boilerplate code from defining C structs in Python.

License: Freeware

Related: Cpp, decorator, struct

O/S:Windows

Downloads: 11



More Similar Code

Java Native Object Oriented BindingGenerates c code which encapsulates Java classes in c struct.



This recipe provides an easy-to-use, decorator-based solution to the problem of using functions from other languages, especially C, in Python. It takes advantage of Python's new annotations to provide simple type checking and automatic conversion....



Fast lightweight attribute style access to list. I think this is closest to mutable C struct type.

Same as collections.namedtuple but subclasses list, so fields may be modified.
Same as popular Record class but smaller and faster....



fileobj is a hex editor with vi like interface. This software is written in Python and works on Python 2.5, 2.6 and 2.7. It works on Linux, NetBSD, OpenBSD, FreeBSD and possibly other unix operating systems that support ncurses. This software...



This is a quick-hack module I wrote up in a couple of hours that allows for a nicer syntax to build up struct-like binary packing and unpacking. The point was to get it to be concise and as C-like as possible. This script requires python3 for it's...



C = NSTRUCT2CELL(S)
Recursive function that converts a nested struct S with a total of n sub-fields into a nx2 cell array C.
The first column of C lists the full names of the sub-fields and the second column contains the respective...



fRMField: Remove field(s) from a struct - fast C-MEX
This function is about 5 to 10 times faster than RMFIELD of Matlab 2009a.

T = fRMField(S, Name)
INPUT:
S: Struct or struct array.
Name: String or cell string....



Print a struct to file. The output can be aligned to be more human-readable, or be separated by a specified delimiter.
Requires the getarg function.

Ex:
struct2File( s, 'c:file.txt', 'align', true, 'sort', false );



This function allows to save all the variables from the current workspace into a struct array
Sometimes you need to save the variables from your base workspace, but using "save" function will have them all stored individually so if...



The SMLogger suite contains the five components for logging of errors/exceptions, tracing of messages, events etc1. TSMExceptionLog:drop this component and you'll receive the useful processing of errors and exceptions for your application in one...

User Review for C struct decorator
- required fields
     

Please enter text on the image